From: DJ Delorie Subject: Re: cygpath 11 Nov 1998 10:51:41 -0500 Message-ID: <3649B28D.41C6@delorie.com> References: <36484B31 DOT A6089DF DOT cygnus DOT gnu-win32 AT st DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22) 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.