- fix core file completion in gdb

This commit is contained in:
ianmacd 2003-03-17 23:34:02 +00:00
parent fa7a6fe3e5
commit 7c01a16210

View File

@ -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" ) )