added code to gracefully handle debug options (set +/-v)

master
David Paleino 2008-06-23 12:03:06 +02:00
parent 4287baddf8
commit 46350a20ef
2 changed files with 16 additions and 2 deletions

View File

@ -25,7 +25,17 @@
#
# RELEASE: 20080617.2
[ -n "${BASH_COMPLETION_DEBUG:-}" ] && set -v || set +v
if [[ $- == *v* ]]; then
BASH_COMPLETION_ORIGINAL_V_VALUE="-v"
else
BASH_COMPLETION_ORIGINAL_V_VALUE="+v"
fi
if [[ -n $BASH_COMPLETION_DEBUG ]]; then
set -v
else
set +v
fi
# Alter the following to reflect the location of this file.
#
@ -9435,6 +9445,9 @@ unset -f have
unset UNAME RELEASE default dirnames filenames have nospace bashdefault \
plusdirs
set $BASH_COMPLETION_ORIGINAL_V_VALUE
unset BASH_COMPLETION_ORIGINAL_V_VALUE
### Local Variables:
### mode: shell-script
### End:

3
debian/changelog vendored
View File

@ -17,8 +17,9 @@ bash-completion (20080617.4) UNRELEASED; urgency=low
- added flv/FLV completion to mplayer
- only complete on filenames for aspell
- fixed code for exclusions compspecs
- added code to gracefully handle debug options (set +/-v)
-- David Paleino <d.paleino@gmail.com> Mon, 23 Jun 2008 12:00:07 +0200
-- David Paleino <d.paleino@gmail.com> Mon, 23 Jun 2008 12:02:40 +0200
bash-completion (20080617.3) unstable; urgency=low