Re: Possible bug? POSIX paths
Ralf Fassel <[email protected]> Fri, 8 Feb 2013 16:07:10 +0100
| Newsgroups | gmane.comp.gnu.mingw.msys |
|---|---|
| Message-ID | <[email protected]> |
* BGINFO for X | 4) Windows path subfolder (ADAM) -> It doesn't works! | | $ ls -la c:\windows\ADAM | | ls: c:windowsADAM: No such file or directory --<snip-snip>-- | My question is: Why test 4 doesn't work? Because the backslash is the SHELL quoting character. It is used to escape the next character from any special meaning. In your example, 'w' and 'A' have no special meaning, so the backslash is 'wasted'. You need to double an unquoted backslash to get a single backslash into the argument: ls -la c:\\windows\\ADAM or quote it: ls -la 'c:\windows\ADAM' HTH R' ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb