X-Recipient: archive-cygwin AT delorie DOT 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 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 AT cygwin DOT com, nabble AT kosowsky DOT org Subject: Re: [1.7] Undocumented change in accessing by dos drive letters? References: <19183 DOT 9501 DOT 7117 DOT 656831 AT consult DOT pretender> <4AEF316F DOT 2070502 AT cygwin DOT com> <26222438 DOT post AT talk DOT nabble DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 AT byu DOT 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