This is the mail archive of the
mailing list for the Cygwin project.
Re: [1.7] Undocumented change in accessing by dos drive letters?
-----BEGIN PGP SIGNED MESSAGE-----
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 firstname.lastname@example.org
-----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/
-----END PGP SIGNATURE-----
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple