[Bash-completion-devel] Bug#366899: bash-completion: function _dpkg_source contains a inappropriate exit statement
A.Politz
politza at fh-trier.de
Mon Oct 20 18:03:57 UTC 2008
Package: bash-completion
Version: 20080705
Followup-For: Bug #366899
_dpkg_source contains a inappropriate exit statement, which forces
the shell to exit. I suppose this should be 'return' instead.
Reproduce: Open a bash-shell , type '_dpkg_source<RET>'.
Patch follows:
diff -c -L /su:root at localhost:/etc/bash_completion -L /tmp/buffer-content-2677a0z /tmp/tramp.2677M-C /tmp/buffer-content-2677a0z
*** /su:root at localhost:/etc/bash_completion
--- /tmp/buffer-content-2677a0z
***************
*** 4457,4463 ****
COMPREPLY=()
if [ "$1" != "dpkg-source" ]; then
! exit 1
fi
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
--- 4457,4463 ----
COMPREPLY=()
if [ "$1" != "dpkg-source" ]; then
! return 1
fi
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 3.2-4 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
-- debconf-show failed
More information about the Bash-completion-devel
mailing list