Fix gdb completion issue when completing second parameter after first
parameter that has white space. Reported by Branden Robinson <branden@debian.org>.
This commit is contained in:
parent
b0b5912b1c
commit
8b03b81fca
@ -1,6 +1,6 @@
|
||||
# bash_completion - programmable completion functions for bash 3.0
|
||||
#
|
||||
# $Id: bash_completion,v 1.844 2006/02/24 11:19:41 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.845 2006/02/24 11:37:04 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -3926,7 +3926,7 @@ _gdb()
|
||||
elif [ $COMP_CWORD -eq 2 ]; then
|
||||
prev=${prev##*/}
|
||||
COMPREPLY=( $( compgen -fW "$( command ps axo comm,pid | \
|
||||
awk '{if ($1 ~ /^'$prev'/) print $2}' ) )" \
|
||||
awk '{if ($1 ~ /^'"$prev"'/) print $2}' ) )" \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user