This is the mail archive of the cygwin 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]
Other format: [Raw text]

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


Hi,

If I execute these commands, I get these outputs:
$ cygpath -w .
.\
$ cygpath -u .
.

As you can see these commands return different values.

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"
#----------

If you run this, $FILE is set to ".\/out.txt" which is not very unix
friendly.

Can I get a bug fix for "cygpath -w ." to return "." instead of ".\"?

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

Not too sure if this right forum, if not can someone please direct to
appropriate means of bug reporting.

Thanks,
Trevor Baker
AlphaTrade.com

trevor@alphatrade.com
toll-free: 1-877-288-7799
tel: 604-681-7503x246
fax: 604-681-7710


--
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/


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