delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/05/16:34:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <26222438.post@talk.nabble.com>
Date: Thu, 5 Nov 2009 13:34:30 -0800 (PST)
From: aputerguy <nabble AT kosowsky DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Undocumented change in accessing by dos drive letters?
In-Reply-To: <4AEF316F.2070502@cygwin.com>
MIME-Version: 1.0
References: <19183 DOT 9501 DOT 7117 DOT 656831 AT consult DOT pretender> <4AEF316F DOT 2070502 AT cygwin DOT com>
X-IsSubscribed: yes
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

> Larry Hall (Cygwin) writes
> On 11/02/2009 01:29 PM, Jeffrey J. Kosowsky wrote:
>> I didn't see any documentation in the What's New/What's Changed
>> document saying that the following no longer works:
>> 		<cmd>  <drive letter>:
>> For example:
>> 	$ ls C:
>> 	ls: cannot access C:: No such file or directory
>>
>> This had worked fine on earlier versions.
>> This has broken several of my shell scripts so I am surprised it isn't
>> either documented (if a desired change) or fixed (if a bug).
>
> I agree it's worth documenting.
>
>> Am I missing something?
>
>> Note using C:\\ does work.

> C:/ also works.


Well, this brings up another seeming problem.

From the cygwin shell, I can do tab-completion on drive letters to get
things like C:/usr/bin/ls
However, when I press return, I get:
      bash: C:/usr/bin/ls: No such file or directory
Which is understandable since the file is in C:\cygwin\usr\bin\ls
So, why is bash tab completion messing up here? (note the same behavior was
true in cygwin 1.5 too so this is not a "new" bug.

Note that completion does not work at all on the C:\\ format.
And completion works fine on the /c or /cygdrive/c format.

-- 
View this message in context: http://old.nabble.com/-1.7--Undocumented-change-in-accessing-by-dos-drive-letters--tp26168578p26222438.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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