X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4AF39496.8050005@byu.net>
Date: Thu, 05 Nov 2009 20:14:30 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com, nabble@kosowsky.org
Subject: Re: [1.7] Undocumented change in accessing by dos drive letters?
References: <19183.9501.7117.656831@consult.pretender> <4AEF316F.2070502@cygwin.com> <26222438.post@talk.nabble.com>
In-Reply-To: <26222438.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to aputerguy on 11/5/2009 2:34 PM:
>>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.

This is not a bug, but a feature of bash tab-completion.  'man bash', and
search for COMP_WORDBREAKS.  Note that : is a special character, in that
it marks a boundary of a word (so you are completing "/usr/bin/ls", not
"c:/usr/bin/ls").  In other words, completion sees a different file name
than ls.  All the more reason to use posix-y paths and avoid drive letters.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrzlJYACgkQ84KuGfSFAYAtGQCeMy454mlxAKx6k/VKj3AkFZek
9CAAnRWyZ+xoZgutSGJ9mIV3KtK7tLB8
=Bgv3
-----END PGP SIGNATURE-----

--
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

