cygwin and long filenames with spaces

Randall R Schulz rrschulz@cris.com
Mon Aug 12 12:45:00 GMT 2002


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@cris.com>
>To: <cygwin@cygwin.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@garydjones.mailshell.com wrote:
> > >On 09 Aug 2002, "John Morrison" <john.r.morrison@ntlworld.com>
> > >wrote:
> > >
> > > >> From: news@garydjones.mailshell.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/



More information about the Cygwin mailing list