[Bash-completion-devel] bash-completion 20080705 weirdness when running as root

Mark Rosenstand rosenstand at gmail.com
Sun Feb 22 08:29:44 UTC 2009


Hi,

I have a problem when using it as root, though. Tab-completing even
filenames will cause an error such as:

cd /et-sh: <( compgen -d -- '/etc' ): No such file or directory

Setting BASH_COMPLETION_DEBUG shows this:

-sh: bash_completion: line 273: syntax error near unexpected token `<'
-sh: bash_completion: line 273: `	done < <( compgen -d --
"$(quote_readline "$cur")" )'

GNU bash, version 3.2.48(1)-release (i686-pc-linux-gnu)

This only happens as root for some reason. There's no .bashrc and only
a tiny /etc/profile which sets up PATH and PS1.

Thanks for taking over maintenance of this great package.



More information about the Bash-completion-devel mailing list