This is the mail archive of the
mailing list for the Cygwin project.
Re: window command in bash
Buchbinder, Barry (NIH/NIAID) [E] wrote:
Igor Peshansky wrote:
On Tue, 18 Jul 2006, Buchbinder, Barry (NIH/NIAID) [E] wrote:
A minor correction: you still need to escape the backslashes when
Did you quote the path or escape the backslashes to protect the
backslashes from the shell interpreting them as escape characters?
E.g., AgBackup.exe /notext 'c:\Alligate\agbackupfiles'
AgBackup.exe /notext "c:\Alligate\agbackupfiles"
using double quotes, so the right way is
AgBackup.exe /notext "c:\\Alligate\\agbackupfiles"
Here's what bash does:
/c> echo "c:\Alligate\agbackupfiles"
Maybe if one has a variable following the backslash:
/c> echo "xyz\$USER"
/c> echo "xyz\\$USER"
I think the point is that "\\" is ALWAYS safe, whereas "\?" (where "?"
is some character) may not be.
Lions and tigers and ...penguins? We're being invaded!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html