Bug: "cygpath -w ." returns ".\" instead of "."

Luc Hermitte hermitte@free.fr
Thu Jul 1 21:56:00 GMT 2004


Hello,

* On Thu, Jul 01, 2004 at 02:42:46PM -0700, Trevor Baker <trevor@alphatrade.com> wrote:
> Now in cygwin this may cause problems elsewhere, such as in the following
> trivial script:
> #----------
> #!/bin/sh
> 
> BASEDIR=`cygpath -w .`
> FILE="$BASEDIR/out.txt"
> 
> touch "$FILE"
> #----------

use -m instead of -w

> I'm using the latest cygwin v1.5.10-3 on NT2k. Don't know cygpath
> version...sorry.

cygpath -v

-- 
Luc Hermitte
http://hermitte.free.fr/cygwin/

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



More information about the Cygwin mailing list