On 5/23/07, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> Done. The rules have changed slightly, but should be consistent now.
> The option handling when reading from files (-o -f ...) is now identical
> to the option handling from the the command line, except that the -o and
> -f options are invalid when reading from a file.
Now, one can't do, eg, "cygpath -w -S" to get the system directory in
windows format (or even "cygpath -u -S" to explicitly ask for it in
unix form. Previously these worked. Is that intentional?
"cygpath -f" seems to ignore commandline options, eg to convert to
windows format:
$ cygpath -w -f - <<< /usr/bin/bash
/usr/bin/bash
"cygpath -of" seems to default to windows format rather than unix
format, except for "system directory" options:
$ /bin/echo -e "/usr/bin/bash\n-P" | cygpath -of -
C:\cygwin\bin\bash
/cygdrive/c/Documents and Settings/Lev/Start Menu/Programs