cygpath not working properly when the windows path argument ends in backslash

Aaron Schneider notstop2@users.sourceforge.net
Wed Jan 2 17:05:00 GMT 2013


On 02/01/2013 2:17, Earnie Boyd wrote:
>> cygpath.exe -a "c:\Users\All Users\"
>>>
>>
>> Probably this trailing backslash is interpreted by shell, what to do about
>> this?
>
> Not probably, it is exactly that.
>
> cygpath.exe -a "C:\\Users\\All Users\\"

I was incorrectly quoting the path. This works:

$ cygpath.exe -a 'c:\Users\All Users\'
/cygdrive/c/Users/All Users/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list