[Bug 461318] Re: bash-completion fails under "set -o nounset"
Launchpad Bug Tracker
461318 at bugs.launchpad.net
Sun Feb 21 22:50:31 UTC 2016
*** This bug is a duplicate of bug 663111 ***
https://bugs.launchpad.net/bugs/663111
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: bash-completion (Ubuntu)
Status: New => Confirmed
--
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/461318
Title:
bash-completion fails under "set -o nounset"
Status in bash-completion package in Ubuntu:
Confirmed
Bug description:
Binary package hint: bash-completion
Ubuntu 9.10rc
bash-completion: Installed: 1:1.0-3ubuntu2
If you turn on "nounset" to warn about undefined variables, then
bash_completion fails to load and fails to run.
idallen at ubuntu:~$ set -o nounset
idallen at ubuntu:~$ . /etc/bash_completion
bash: BASH_COMPLETION_DEBUG: unbound variable
bash: BASH_COMPLETION: unbound variable
bash: BASH_COMPLETION_DIR: unbound variable
bash: BASH_COMPLETION: unbound variable
bash: list[@]: unbound variable
bash: BASH_COMPLETION_DIR: unbound variable
bash: BASH_COMPLETION: unbound variable
idallen at ubuntu:~$ set +o nounset
idallen at ubuntu:~$ cd /[TAB]
bin/ etc/ media/ root/ sys/
boot/ home/ mnt/ sbin/ tmp/
cdrom@ lib/ opt/ selinux/ usr/
dev/ lost+found/ proc/ srv/ var/
idallen at ubuntu:~$ set -o nounset
idallen at ubuntu:~$ cd /[TAB] bash: COMPREPLY[@]: unbound variable
etc.
All references to variables that might be unset should be replaced with
"${variable-}" to avoid these errors.
ProblemType: Bug
Architecture: i386
Date: Mon Oct 26 11:01:24 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate i386 (20091020.3)
Package: bash-completion 1:1.0-3ubuntu2
PackageArchitecture: all
ProcEnviron:
LC_COLLATE=C
PATH=(custom, user)
LANG=C
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: bash-completion
Uname: Linux 2.6.31-14-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/461318/+subscriptions
More information about the foundations-bugs
mailing list