dkp said:If you use a Posix environment in Windows (U/Win, MKS Toolkit) you'd like to manage file names without any intervening layer making decisions for you. And you'd like your regular expression special characters to work as expected. While I'd avoid like the plague using such characters in file names in the first place, I'd like those characters to remain well-behaved when they are used in a regex context.
Exactly! You're using a posix environment. That's the one that will be doing the work of translation, not the share's host. If you use a regex to select 10 files (for example), the posix system will tell the share which 10 files those are... it won't pass the regex through. Therefore, your point is not valid, since you'd have to escape those characters in the posix environment if you want them to remain literal. This acts no differently than if you were doing everything on a local filesystem.
Lets say you have these files on your share.
a[1].txt
a[2].txt
a[3].txt
Run the following to copy them to your local filesystem (as long as your shell handles regex)
$ cp /share/a\[[1-3]\].txt .
(Assuming I wrote my regex right, I just woke up
Last edited: