This is the mail archive of the
mailing list for the Cygwin project.
RE: Passing double quotes to DOS
- From: "cyg Simple" <cygsimple at gmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 5 May 2015 09:21:34 -0400
- Subject: RE: Passing double quotes to DOS
- Authentication-results: sourceware.org; auth=none
- References: <CA+Ni7jNBd0WZu37OMiPEyvxwkgvYnDfonKoLjpuvNrZ95A9Rbw at mail dot gmail dot com> <CA+Ni7jORNM-kSMYBwFcVgJ_6fxz=_Hi0TzwcVcpgqw3pp7GEOQ at mail dot gmail dot com>
> There was a statement saying that cygwin does everything to preserve double
Where is that statement?
> It does not. I was recently doing some symbolic links with "cmd /c mklink "path"
> "filename" " recently and it was fine until I had a file with ampersand.
It isn't Cygwin but the shell semantics that parse the double quotes.
> If I type
> cmd /c mklink "path" "filename"
> cmd.exe is called without doubleqoutes (I use ProcExp to see cmd line).
Because the shell (e.g. bash) processes the data within the quotes; that isn't Cygwin and would happen in any *NIX shell. Use:
cmd /c mklink '"path"' '"filename"'
instead. Note the ' before and after (dependent on left or right values) the ".
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple