delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/16/19:09:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Tue, 16 Aug 2005 19:09:01 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Eric Blake <ericblake AT comcast DOT net>
cc: Sam Steingold <sds AT gnu DOT org>, cygwin AT cygwin DOT com
Subject: Re: readline completion
In-Reply-To: <081620052253.14744.43026E6400056BEF0000399822058864420A050E040D0C079D0A@comcast.net>
Message-ID: <Pine.GSO.4.61.0508161905100.9560@slinky.cs.nyu.edu>
References: <081620052253 DOT 14744 DOT 43026E6400056BEF0000399822058864420A050E040D0C079D0A AT comcast DOT net>
MIME-Version: 1.0

On Tue, 16 Aug 2005, Eric Blake wrote:

> > pathname completion in bash (implemented using readline) does not work
> > with woe32 pathnames:
> > this does not work:
> > $ ls c:/ <TAB>
> > this works:
> > $ ls /cygdrive/c/ <TAB>
> >
> > is it possible to fix this?
>
> Possible? Yes.  Likely to happen?  Depends on whether I ever get
> time to look at it, or if someone beats me to it by providing a patch.
> Also, which version of bash and readline are you using?  bash-3.0-11
> introduced the notion of c: being an absolute path to the bash
> internals; maybe I need to find where readline also needs to be
> taught that fact.  Also, readline 5.1 and bash 3.1 are in alpha, so
> the fix might not appear until those go mainstream.
>
> One other thing to consider - by default, filename completion breaks
> words at the : character (useful for completing assignments to PATH,
> among others).  So do yourself a favor, and get used to a /cygdrive
> style pathname, rather than the c: prefix.  And if it is too many
> characters to type, change your cygdrive prefix to /.  '/c' is just as many
> characters as 'c:', but more unix-y:
> http://lists.gnu.org/archive/html/bug-bash/2005-08/msg00017.html
> http://lists.gnu.org/archive/html/bug-bash/2005-08/msg00019.html

Besides, a one-time sequence of commands below will allow painless
Tab-completion of /cygdrive:

cd / && \
mkdir /cygdrive && \
cmd /c ren cygwin.bat Cygwin.bat && \
cmd /c ren cygwin.ico Cygwin.ico

Enjoy,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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