Question about tab completion

Dave Korn dave.korn@artimi.com
Mon Jun 13 13:36:00 GMT 2005


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



More information about the Cygwin mailing list