This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: cygpath


The cygpath program takes a *single* filename as its
parameter, not a complete command line.  When it saw
the complete command line you gave it:

 cygpath -w "/usr/local/bin/tool -f /usr/src/source.c"

It treated that string as a single filename that happened
to include the subdirectory "/tool -f /" and properly
converted the entire string to a single Windows path name.

I think what you wanted to do was this:

 /usr/local/bin/tool -f `cygpath -w /usr/src/source.c`

If you have a posix path, chances are, you're running bash
or some script that understands them, so don't
convert that.  Else, do that conversion too.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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