- fix core file completion in gdb
This commit is contained in:
parent
fa7a6fe3e5
commit
7c01a16210
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05b
|
||||
#
|
||||
# $Id: bash_completion,v 1.535 2003/02/27 09:31:14 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.536 2003/03/18 00:34:02 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -2751,7 +2751,7 @@ _gdb()
|
||||
COMPREPLY=( $( compgen -c -- $cur ) )
|
||||
elif [ $COMP_CWORD -eq 2 ]; then
|
||||
prev=${prev##*/}
|
||||
COMPREPLY=( $( compgen -W "$( compgen -f core* \
|
||||
COMPREPLY=( $( compgen -W "$( compgen -f core \
|
||||
$( command ps axo comm,pid |
|
||||
awk '{if ($1 ~ /^'$prev'/) print $2}' ) )" \
|
||||
-- "$cur" ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user