diff --git a/bash_completion b/bash_completion index 5afc42ab..e0e3c73e 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05b # -# $Id: bash_completion,v 1.440 2002/10/14 19:57:15 ianmacd Exp $ +# $Id: bash_completion,v 1.441 2002/10/16 00:09:09 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -175,7 +175,6 @@ _expand() { [ "$cur" != "${cur%\\}" ] && cur="$cur\\" - # expand ~username type directory specifications if [[ "$cur" == \~*/* ]]; then eval cur=$cur @@ -2592,7 +2591,7 @@ _gdb() COMPREPLY=( $( compgen -c -- $cur ) ) elif [ $COMP_CWORD -eq 2 ]; then prev=${prev##*/} - COMPREPLY=( $( compgen -W "$( echo $( ps axo comm,pid | + COMPREPLY=( $( compgen -W "$( echo core* $( ps axo comm,pid | awk '{if ($1 ~ /^'$prev'/) print $2}' ) )" \ -- "$cur" ) ) fi