Mail Archives: cygwin/2002/08/12/15:04:34
Terry,
At first I didn't understand what you were suggesting, but I think I do
now. Please correct me if I'm wrong.
If you create those directories (correcting the spelling error / typo in
"/prog" which I assume you meant to be "/proc") then the completions that I
mentioned as not working will indeed work.
Presumably these names are special and intercepted in Cygwin1.dll so the
presence of ordinary directories with the same name does not disturb the
function of those special names but simply serves as a means of getting
command completion to see and expand them from their prefixes.
In other words, the special, built-in treatment of "/cygdrive", "/dev" and
"/proc" overrides or "shadows" the existence of real directories by those
names, but readline still just looks for matches in "/" when attempting
completion.
Further experimentation seems to confirm this understanding.
Randall Schulz
Mountain View, CA USA
At 11:45 2002-08-12, Terry Flannery wrote:
>mkdir /prog /cygdrive /dev
>/<any-other-path-that-exists-in-cygwin-but-not-on-the-filesystem>
>
>Terry
>
>----- Original Message -----
>From: "Randall R Schulz" <rrschulz AT cris DOT com>
>To: <cygwin AT cygwin DOT com>
>Sent: Monday, August 12, 2002 7:00 PM
>Subject: RE: cygwin and long filenames with spaces
>
>
> > Hi,
> >
> > My experiments suggest both these contentions are correct, depending on
>how
> > one interprets them.
> >
> > If I type this:
> > ls -l /cygdr<TAB>
> >
> > or this:
> > ls -l /cygdr<ALT-*>
> >
> > (same as this:)
> > ls -l /cygdr<ALT-SHIFT-8>
> >
> > There are no completions. The same goes for "/pro" in place of "/cygdr".
> >
> > However, doing this:
> >
> > ls -l /cygdrive/<ALT-*>
> >
> > I get a listing of all my drives (modulo the bug the causes my C: drive to
> > be omitted from /cygdrive). Likewise, this works for "/proc".
> >
> >
> > Randall Schulz
> > Mountain View, CA USA
> >
> >
> > At 09:48 2002-08-12, news AT garydjones DOT mailshell DOT com wrote:
> > >On 09 Aug 2002, "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com>
> > >wrote:
> > >
> > > >> From: news AT garydjones DOT mailshell DOT com
> > >
> > > >> $ cd /cygdr<tab>
> > > >> --
> > > >> doesn't do what one might expect (i.e. it does not seem to
> > > >> try to complete the line).
> > > >
> > > > Tab completion only works with real directories.
> > > > /cygdrive, /proc are virtual.
> > >
> > >Fairy snuff.
--
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/
- Raw text -