delorie.com/archives/browse.cgi | search |
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: | "Dave Korn" <dk AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: "cygpath -w ." returns ".\" instead of "." |
Date: | Fri, 2 Jul 2004 10:19:49 +0100 |
MIME-Version: | 1.0 |
In-Reply-To: | <EEEEICLFFGBGJBFBMGLDOEBJCLAA.trevor@alphatrade.com> |
Message-ID: | <NUTMEGsxpTljBOh8s4K0000068a@NUTMEG.CAM.ARTIMI.COM> |
X-OriginalArrivalTime: | 02 Jul 2004 09:19:49.0640 (UTC) FILETIME=[B9869080:01C46015] |
> -----Original Message----- > From: cygwin-owner On Behalf Of Trevor Baker > Sent: 01 July 2004 22:43 > the following > trivial script: Even a trivial script can have bugs in it! > #---------- > #!/bin/sh > > BASEDIR=`cygpath -w .` So here on line one, you're asking for a windoze-format path. > FILE="$BASEDIR/out.txt" And here on line two, you're concatenating a unix-style path to the windoze-style path you previously asked for. That looks like a bug to me. > touch "$FILE" > #---------- > > If you run this, $FILE is set to ".\/out.txt" which is not very unix > friendly. WDDTT! cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |