- Package:
- bash-completion
- Source:
- bash-completion
- Submitter:
- Askar Safin
- Date:
- 2024-01-02 04:00:08 UTC
- Severity:
- normal
Type the following:
du --exclude='*.jpg' /<Tab>
You will see that <Tab> doesn't autocomplete. "du /<Tab>" works normally.
bash-completion is installed. The following is uncommented in /etc/bash.bashrc:
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
Completion works normally in other utils (such as dpkg and apt).
I'm on Wheezy with bash-completion version 2.1-4 and I can confirm. I believe I have also narrowed the bug down. This lists files in root: $ du --exclude=asdf /<TAB> But this (with quotes) does not: $ du --exclude="asdf" /<TAB> After a quick survey, it seems like it happens to all options that have an equals sign (=) in them. Sincerely, Aditya Vaidya