Buchbinder, Barry (NIH/NIAID) [E] wrote:
Igor Peshansky wrote:
On Tue, 18 Jul 2006, Buchbinder, Barry (NIH/NIAID) [E] wrote:
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'
or
AgBackup.exe /notext "c:\Alligate\agbackupfiles"
A minor correction: you still need to escape the backslashes when
using double quotes, so the right way is
AgBackup.exe /notext "c:\\Alligate\\agbackupfiles"
Here's what bash does:
/c> echo "c:\Alligate\agbackupfiles"
c:\Alligate\agbackupfiles
Maybe if one has a variable following the backslash:
/c> echo "xyz\$USER"
xyz$USER
/c> echo "xyz\\$USER"
xyz\BBuchbinder
I think the point is that "\\" is ALWAYS safe, whereas "\?" (where "?"
is some character) may not be.
--
Matthew
Lions and tigers and ...penguins? We're being invaded!
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/