-----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 e...@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