- minor fix to gdb completion

This commit is contained in:
ianmacd 2002-12-09 20:35:37 +00:00
parent e3dffc7054
commit 7a3bccfa2b

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.481 2002/12/06 22:43:02 ianmacd Exp $
# $Id: bash_completion,v 1.482 2002/12/09 21:35:37 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -2609,7 +2609,7 @@ _gdb()
COMPREPLY=( $( compgen -c -- $cur ) )
elif [ $COMP_CWORD -eq 2 ]; then
prev=${prev##*/}
COMPREPLY=( $( compgen -W "$( echo core* \
COMPREPLY=( $( compgen -W "$( compgen -f core* \
$( command ps axo comm,pid |
awk '{if ($1 ~ /^'$prev'/) print $2}' ) )" \
-- "$cur" ) )