Hello Guillaume,

I can't reproduce your problem, maybe it's distribution specific?
I've tried on Debian 4.0 with latest bash-completion from bzr and
`sudo vim <TAB>' and `sudo chown <TAB>' run fine.  `sudo rpm -q ' on
Debian is giving me whole other problems though:

---8<-------------------------------------------------------------------

$ bash --norc
$ . bash_completion
$ sudo vim /etc/pass<TAB>
passwd   passwd-
$ sudo vim /etc/passwd<^C>
$ sudo chown roo<TAB>  # Becomes next line  --v
$ sudo chown root\: <^C>
$ sudo rpm -q <TAB>rpm: To install rpm packages on Debian systems, use
alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
bash: bad substitution: no closing `)' in $(
                compgen -d -- "$(quote_readline "$cur")" | {
                        while read -r tmp; do
                                # TODO: I've removed a "[ -n $tmp ] &&" before,
                                #       and everything works again. If this bug
                                #       suddenly appears again (i.e. "cd 
/b<TAB>"
                                #       becomes "cd /"), remember to check for
                                #       other similar conditionals (here and
                                #       _filedir_xspec()). --David
                                echo $tmp
                        done
                }
        )
$

---8<-------------------------------------------------------------------

Regards, Freddy Vulto

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel

Reply via email to