delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/01/17:43:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Trevor Baker" <trevor AT alphatrade DOT com>
To: <cygwin AT cygwin DOT 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
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 AT alphatrade DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019