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 -uorset -o nounsetcommands 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
