www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/19/02:41:53

Date: Mon, 19 Mar 2001 09:38:16 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Tab completion in BASH 2.04
In-Reply-To: <q1dabt4l7ec0a0jted3rpvt56ch0g34ebg@4ax.com>
Message-ID: <Pine.SUN.3.91.1010319093757.21558J-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 18 Mar 2001, Jason Green wrote:

> bash-2.04$ rmdir c:/foo
> 
>  press TAB
> 
> bash-2.04$ rmdir c:/foo bar/
> 
> The directory is obviously found ok, but the colon and space have not
> been escaped.

I'm not sure the colon needs to be escaped (why?), but the space
should.

Also, perhaps Bash should support completion when the file name is
quoted, like this:


  bash-2.04$ rmdir "c:/foo TAB

Right now, I need to type this:

  bash-2.04$ rmdir "c:/foo" TAB

(note the closing quote) to get Bash 2.04 DTRT, but it then removes
the quotes after the completion :-(.

I guess this is one more reason not to use spaces in file names ;-)

- Raw text -


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