[Bug 1813090] Re: bash completions in /usr/share/bash-completion generate unbound variable errors
Ubuntu Foundations Team Bug Bot
1813090 at bugs.launchpad.net
Sat Oct 26 16:28:03 UTC 2019
The attachment "add -g to declare of _xspecs to ensure it stays in the
global scope" seems to be a patch. If it isn't, please remove the
"patch" flag from the attachment, remove the "patch" tag, and if you are
a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1813090
Title:
bash completions in /usr/share/bash-completion generate unbound
variable errors
Status in bash package in Ubuntu:
New
Status in bash-completion package in Ubuntu:
New
Bug description:
After upgrading from Ubuntu 18.04 LTS to 18.04.1 LTS, I get errors
whenever I attempt to tab-complete anything from an interactive bash
prompt.
Tab-completing nothing gives me:
-bash: _xspecs[$cmd]: unbound variable
Tab-completing an existing filename gives me:
-bash: !ref: unbound variable
I've partially narrowed down the cause to me putting `set -o nounset`
in my `.bashrc` file, and something in `/usr/share/bash-completion` is
triggering these unbound variable errors. (That is, the errors go away
if I remove `set -o nounset` or if I make `/usr/share/bash-
completion/bash_completion` exit immediately.)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1813090/+subscriptions
More information about the foundations-bugs
mailing list