Errors reported while using bash-completion

Solution In Progress - Updated -

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 or set -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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content