bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compgen gets confused when trying to complete ambiguous special char


From: Mika Fischer
Subject: compgen gets confused when trying to complete ambiguous special char
Date: Sun, 16 Mar 2008 11:26:52 +0100 (CET)

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2 -Wall
uname output: Linux arthur 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 
2008 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.2
Patch Level: 33
Release Status: release

Description:
It is best described by the example below:
This is related to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/123665
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/197183

Repeat-By:
address@hidden:~$ mkdir test
address@hidden:~$ cd test
address@hidden:~/test$ mkdir -p "STORE'N'GO/test"
address@hidden:~/test$ mkdir -p "STORE\'N\'GO/test"
address@hidden:~/test$ compgen -f "STORE\'N"
STORE'N'GO
address@hidden:~/test$ ls STORE\<TAB> # This will delete the backslash.
                                   # Then press CTRL-C
address@hidden:~/test(1)$ compgen -f "STORE\'N"
address@hidden:~/test(1)$ 

Strangely this will still work:
address@hidden:~/test(1)$ compgen -f "STORE\\\\\\'N"
STORE'N'GO

And this also works before the messup. Can somebody explain where the all
the backslashes go?

Regards,
 Mika 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]