- fix process truncation problem with killall completion

This commit is contained in:
ianmacd 2003-06-29 23:35:57 +00:00
parent b9deb84841
commit 65cfd0c0f2

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.583 2003/06/23 15:54:01 ianmacd Exp $
# $Id: bash_completion,v 1.584 2003/06/30 01:35:57 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -714,8 +714,9 @@ _killall()
if [ $COMP_CWORD -eq 1 ] && [[ "$cur" == -* ]]; then
_signals
else
COMPREPLY=( $( compgen -W '$( command ps axo ucomm | sed 1d )' \
-- $cur ) )
COMPREPLY=( $( compgen -W "$( command ps axo command | \
sed -ne '1d; s/^\[\?\([^-][^] ]*\).*$/\1/p' | \
sed -e 's/.*\///')" -- $cur ) )
fi
return 0