Errors reported while using bash-completion
Issue
- Using bash option nounset causes unbound variable errors while trying to use the bash auto-completion via the tab key.
- When the option nounset either set by
set -u
orset -o nounset
commands while having bash-completion in place, any usage of tab key causes immediate errors reported:
$ echo bash: !ref: unbound variable
bash: !ref: unbound variable
bash: words[i]: unbound variable
Environment
RHEL 7
bash up to version 4.2.46-21.el7_3
bash-completion up to version 2.1-6.el7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.