[Bash-completion-devel] Bug#529357: Bug#529357: bash-completion: Fail to complete file with something between square brackets

David Paleino d.paleino at gmail.com
Wed May 20 20:31:00 UTC 2009


tags 529357 unreproducible
thanks

Hello Leandro,
I can't really reproduce the bug here, with the current development version:

On Mon, 18 May 2009 17:19:36 -0300, Leandro Lucarella wrote:

> luca at azazel:~$ touch /tmp/'['
> luca at azazel:~$ ls /tmp/\[ # 'ls /tmp/['<tab> written

$ touch [
$ ls [<TAB>
$ ls \[<TAB>
[
$ ls \[ 

> luca at azazel:~$ touch /tmp/'[]'
> luca at azazel:~$ ls /tmp/\[ # 'ls /tmp/['<tab> written
> [   []  

$ touch []
$ ls [<TAB>
$ ls \[<TAB>
[   []  
$ ls \[

> luca at azazel:~$ touch /tmp/'[2]'
> luca at azazel:~$ ls /tmp/\[ # 'ls /tmp/['<tab> written
> [   []  

$ touch [2]
$ ls [<TAB>
$ ls \[<TAB>
[    []   [2]  
$ ls \[

> luca at azazel:~$ vi /tmp/\[ # 'vi /tmp/['<tab> written
> [   []  

$ vi [<TAB>
$ vi \[<TAB>
[    []   [2] 
$ vi \[

> luca at azazel:~$ cd /tmp/\[ # 'cd /tmp/['<tab> written
> [   []  

Not tested -- and that shouldn't have worked for you. `cd' should only complete
on directories, and with "touch" you didn't create directories:

$ cd [<TAB>
$ cd [

> luca at azazel:~$ touch /tmp/'[a]'
> luca at azazel:~$ ls /tmp/\[ # 'ls /tmp/['<tab> written
> [   []  

$ touch [a]
$ ls [<TAB>
$ ls \[
$ ls \[<TAB>
[    []   [2]  [a]  
$ ls \[

> As you can see, '[2]' and '[a]' fails to complete. The other files with
> '[' and '[]' work well.

I can't really see this behaviour, thus marking this bug as unreproducible.
Would you please try the current development version?

  http://git.debian.org/?p=bash-completion/bash-completion.git;a=blob_plain;f=bash_completion;hb=HEAD

Kindly,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20090520/1a984729/attachment-0004.pgp>


More information about the Bash-completion-devel mailing list