|
From: Yuri K. <yur...@gm...> - 2014-06-25 23:30:22
|
> > 1. If all of the following conditions are met, then quote characters > on the command line are preserved: > > - no /S switch > - exactly two quote characters > - no special characters between the two quote characters, > where special is one of: &<>()@^| > - there are one or more whitespace characters between the > the two quote characters > - the string between the two quote characters is the name > of an executable file. > > Item 1 is lawyer-speak, but if you read it carefully several time... > Indeed a lawyer-speak. Finally I've managed to understand what it says :) > So the interesting part is item 2, which describes "old behavior" (a > hint to why cmd.exe does what it does)... > I thought it's item 1 that is an old behavior. This means, plain and simple, that MSYS is inappropriate for invoking > cmd.exe. Which is not a catastrophe, at least not for people who, > like me, limit MSYS usage to configuring and building Posix software, > where cmd.exe does not need to be invoked. But other MinGW users, who > do like using MSYS in routine operation of their Windows boxes, might > not be pleased by this conclusion. > Well, the script I need this thing for was originally written for linux, but now that I have a colleague working under windows, there arose the necessity of having it run under windows. As the script basically runs other programs and copies files I thought the bash was still a good fit for it. Not that I changed my mind yet. |