Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Trevor Baker" <trevor@alphatrade.com>
To: <cygwin@cygwin.com>
Subject: Bug: "cygpath -w ." returns ".\" instead of "."
Date: Thu, 1 Jul 2004 14:42:46 -0700
Message-ID: <EEEEICLFFGBGJBFBMGLDOEBJCLAA.trevor@alphatrade.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.26.0.3; VDF: 6.26.0.12; host: postman.alphatrade.com)

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/

