delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/29/08:34:50

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <387E9FC1619C0849BA8934938037E54F12A372 AT sv-muc-004 DOT venyon-mail DOT local> <46D566F8 DOT 6020801 AT byu DOT net>
Subject: RE: [bug?] Directory lister (d) doesn't properly translate drive letters
Date: Wed, 29 Aug 2007 13:33:41 +0100
Message-ID: <010d01c7ea38$d6bff140$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <46D566F8.6020801@byu.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 29 August 2007 13:31, Eric Blake wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Ronald Fischer on 8/29/2007 4:57 AM:
>> ~/thome $ d  t:/rfischer
>> /cygdrive/h/thome/t:/rfischer doesn't exist!
>> ~/thome $
>> 
>> While ls seems to understand the notion of t:, d does not.
> 
> Not necessarily a bug.  Using drive letter notation in cygwin is asking
> for problems, you should instead use /cygdrive/t.  The fact that it works
> for some applications is happenstance, not design.


  Well, any application that just passes it's argv[] parameters directly to
(f)open will work just fine.  Any app that tries to parse and perform string
manipulation on them, OTOH, is going to go wrong... such as by interpreting it
as a relative path to $CWD, as in this example.

  I'd report it upstream.

    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/

- Raw text -


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