diff --git a/bash_completion b/bash_completion index 383d23ee..542031b5 100644 --- a/bash_completion +++ b/bash_completion @@ -1072,9 +1072,7 @@ _pgrep() COMPREPLY=() cur=`_get_cword` - COMPREPLY=( $( compgen -W '$( command ps axo command | \ - sed -ne "1d; s/^\[\?\([^-][^] ]*\).*$/\1/p" | \ - sed -e "s/.*\///" )' -- $cur ) ) + _pnames return 0 } diff --git a/debian/changelog b/debian/changelog index 5d8c6cbb..67453a66 100644 --- a/debian/changelog +++ b/debian/changelog @@ -125,6 +125,7 @@ bash-completion (200902xx) UNRELEASED; urgency=low * Extract process name completion from _killall to _pnames, make it work for others than Linux and FreeBSD. * Fix process name completion with relative paths (RHBZ: #484578). + * Use improved process name completion in pgrep in addition to killall. [ Freddy Vulto ] * Restored `_display()' completion for `display' by removing