delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/12/15:04:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020812115921.0208fd80@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Mon, 12 Aug 2002 12:05:45 -0700
To: "Terry Flannery" <terry DOT flannery AT btinternet DOT com>, <cygwin AT cygwin DOT com>
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: cygwin and long filenames with spaces
In-Reply-To: <005101c24230$6c5b2050$c700a8c0@sknet01>
References: <20020809174336 DOT DAYV28874 DOT mta05-svc DOT ntlworld DOT com AT sources DOT redhat DOT com>
<NCEBJJFMCAOKNNABBFIMAEJGCFAA DOT john DOT r DOT morrison AT ntlworld DOT com>
<5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020812105433 DOT 01fa1358 AT pop3 DOT cris DOT com>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019