This is the mail archive of the 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: cygwin and long filenames with spaces


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


----- Original Message -----
From: "Randall R Schulz" <>
To: <>
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
> 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, wrote:
> >On 09 Aug 2002, "John Morrison" <>
> >wrote:
> >
> > >> From:
> >
> > >> $ 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:
Bug reporting:

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