[Bash-completion-devel] Bug#692086: bash-completion: please make it set -e/E clean
Raphael Geissert
geissert at debian.org
Fri Nov 2 02:55:11 UTC 2012
Package: bash-completion
Version: 1:1.3-3
Severity: wishlist
Hi,
Whether set -e is used, or set -E and its corresponding trap is set, many
completions fail. Using set -e for testing is out of the question, but the
following should give you a good idea:
$ set -E
$ trap -- 'echo "exit code: $?"' ERR
Now try to autocomplete: cd /
A more useful trap for debugging would be
trap 'echo "<$BASH_COMMAND> failed"' ERR
(add extra $BASH_ vars as needed)
Cheers,
--
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
More information about the Bash-completion-devel
mailing list