Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" , From: Randall R Schulz 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> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020812105433 DOT 01fa1358 AT pop3 DOT cris DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 >/ > >Terry > >----- 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 >how > > one interprets them. > > > > If I type this: > > ls -l /cygdr > > > > or this: > > ls -l /cygdr > > > > (same as this:) > > ls -l /cygdr > > > > There are no completions. The same goes for "/pro" in place of "/cygdr". > > > > However, doing this: > > > > ls -l /cygdrive/ > > > > 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" > > >wrote: > > > > > > >> From: news AT garydjones DOT mailshell DOT com > > > > > > >> $ cd /cygdr > > > >> -- > > > >> 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/