This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cygpath usage (was: RE: Posible bug in cygpath Windows -> Unix conversion)


>
> It looks like the conversion assumes a "drive_letter:slash" and so is
> cutting the first 3 characters, producing the output you see.  This is
> probably the result of using the -a option, forcing cygpath to assume
> the source string is an absolute path when in fact it is not.
>

I believe, the option -a means, that the *result* should be absolute path.
Look here:

mw1g017@MW1G17C% cygpath -a -u foo
/cygdrive/c/win32app/bin/foo
mw1g017@MW1G17C% cygpath -a -w foo
c:\win32app\bin\foo

At least, I always understood it this way. Correct me if I'm wrong.

-andrej


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]