This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash 2.05a-3: option to allow drive letter prefixes for completion?


No, it's not wierd. I'm just blind, stupid, or some combination thereof. I
completely forgot that I have C:\WINNT and a few other mounted as /WINNT, etc.
When I did

ls C:/

I was actually seeing my Cygwin root, *not* the root of my C drive.

Sorry for the confusion.

--Rick

--- Randall R Schulz <rrschulz@cris.com> wrote:
> Rick,
> 
> Well, it gets weirder.
> 
> I activated the "show-all-if-ambiguous" and now when I type, say:
> 
>          % echo c:/<TAB>
> 
> What I get is a list of the _Cygwin root_!
> 
> The same thing results if I use:
> 
>          % echo d:/<TAB>
> 
> 
> Here's my mount table:
> 
> % mount
> D:\cygwin\bin on /usr/bin type system (binmode)
> D:\cygwin\lib on /usr/lib type system (binmode)
> D:\cygwin on / type system (binmode)
> \\.\A: on /dev/fd0 type user (binmode)
> c: on /cygdrive/c type user (binmode,noumount)
> d: on /cygdrive/d type user (binmode,noumount)
> e: on /cygdrive/e type user (binmode,noumount)
> g: on /cygdrive/g type user (binmode,noumount)
> h: on /cygdrive/h type user (binmode,noumount)
> 
> 
> Here are the symlins in my Cygwin root:
> 
> % ll / |egrep -e '->'
> lrwxrwxrwx    1 RSchulz  None           94 Nov 29 09:11 a -> /cygdrive/a
> lrwxrwxrwx    1 RSchulz  None           94 Nov 21 08:50 c -> /cygdrive/c/
> lrwxrwxrwx    1 RSchulz  None           94 Nov 21 08:50 d -> /cygdrive/d/
> lrwxrwxrwx    1 RSchulz  None           94 Nov 21 08:50 e -> /cygdrive/e/
> lrwxrwxrwx    1 RSchulz  None           94 Nov 21 08:50 f -> /cygdrive/f
> lrwxrwxrwx    1 RSchulz  None           94 Nov 21 08:50 g -> /cygdrive/g/
> lrwxrwxrwx    1 RSchulz  None           94 Nov 21 12:57 h -> /cygdrive/h/
> 
> 
> Randall Schulz
> Mountain View, CA USA
> 
> 
> At 10:44 2002-04-16, Rick Rankin wrote:
> >Hmm... I've set no special options regarding case sensitivity, but 
> >completion with both upper and lower case drive letters works fine, i.e.,
> both
> >
> >ls c:/<tab>
> >
> >and
> >
> >ls C:/<tab>
> >
> >show me the contents of the root directory on drive C. I *do* have the 
> >directive
> >
> >set show-all-if-ambiguous on
> >
> >in my .inputrc. Don't know if that has any effect.
> >
> >--Rick
> >
> >
> >--- Randall R Schulz <rrschulz@cris.com> wrote:
> > > Larry,
> > >
> > > I deliberately use case sensitivity for completion, but even knowing
> that,
> > > completion on absolute names in Windows native format does not work for 
> > me.
> > > I tried with the drive letter both in lower and upper case, but no go.
> > >
> > > Perhaps there's another option of which I'm unaware?
> > >
> > >
> > > By the way, for Chris' benefit, in case he doesn't already know, the
> > > "~/.inputrc" directive for getting case insensitivity from completion is:
> > >
> > > set completion-ignore-case on
> > >
> > >
> > > Randall Schulz
> > > Mountain View, CA USA
> > >
> > >
> > > At 09:56 2002-04-16, Larry Hall (RFK Partners, Inc) wrote:
> > > >At 12:45 PM 4/16/2002, Chris Metcalf wrote:
> > > > >Currently, if you use completion on a path with a drive letter (e.g.
> > > > >"ls -d c:/win<TAB>"), bash considers the drive letter to be unrelated
> > > > >syntax and expands out of the mounted root instead (e.g. c:/cygwin).
> > > >
> > > >
> > > >I don't see this behavior.  It works fine for me (tm).  Perhaps you're
> > > >getting caught by bash's default case-sensitivity of filename
> completion?
> > > >I can't even begin to imagine why you get the root directory as a result
> > > >though.  I'm guessing this must be a local environment issue.
> > > >
> > > >
> > > >Larry Hall
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]