This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Question about tab completion
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 13 Jun 2005 11:04:31 +0100
- Subject: RE: Question about tab completion
----Original Message----
>From: Mikael
>Sent: 13 June 2005 10:39
> Hello, I've altered my mounts so I can do:
> $ cd /c/somedirectory
> instead of
> $ cd /cygdrive/c/somedirectory
> The ouput of mount is:
> $ mount
> C:\cygwin\bin on /usr/bin type system (binmode)
> C:\cygwin\lib on /usr/lib type system (binmode)
> C:\cygwin on / type system (binmode)
> c: on /c type system (binmode,noumount)
>
> But say I type /c<tab>, instead of stopping at c as I thought would
> happen, /cyg is completed and these three are displayed:
> cygdrive cygwin.bat cygwin.ico
>
> Why? Why doesn't it stop at c? Have I done something wrong with my mounts
> or is this as it should be?
IIUIC, mount points aren't detected by tab-completion. The simple
workaround? Create a subdirectory called 'c' in your root dir using "mkdir
/c" so that /c/ is a real path: then tab completion sees the real dir and
uses it in completion, but the mount point overrides any attempt to access
files through that path so you still get to your C drive instead of the 'c'
subdir.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/