added . to $PATH, to allow debugging "local" executables.

This commit is contained in:
David Paleino 2008-06-25 19:59:26 +02:00
parent 91f67553a2
commit 65a864d014
2 changed files with 3 additions and 2 deletions

View File

@ -4045,7 +4045,7 @@ _gdb()
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -d -c -- $cur ) )
COMPREPLY=( $( PATH="$PATH:." compgen -d -c -- "$cur" ) )
elif [ $COMP_CWORD -eq 2 ]; then
prev=${prev##*/}
COMPREPLY=( $( compgen -fW "$( command ps axo comm,pid | \

3
debian/changelog vendored
View File

@ -6,8 +6,9 @@ bash-completion (20080624) UNRELEASED; urgency=low
* Changing _gdb completion:
- $filenames to $default (Closes: #463969)
- also show directory names (i.e. compgen -d) in COMPREPLY.
- added . to $PATH, to allow debugging "local" executables.
-- David Paleino <d.paleino@gmail.com> Wed, 25 Jun 2008 17:58:17 +0200
-- David Paleino <d.paleino@gmail.com> Wed, 25 Jun 2008 19:59:03 +0200
bash-completion (20080617.5) unstable; urgency=medium