[Bash-completion-commits] [SCM] bash-completion branch, master, updated. db00d73296c69f38ed0193dd4e41b50da0bcfc49

Ville Skyttä ville.skytta at iki.fi
Sun Feb 15 16:53:09 UTC 2009


The following commit has been merged in the master branch:
commit db00d73296c69f38ed0193dd4e41b50da0bcfc49
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Feb 15 18:53:09 2009 +0200

    Use improved process name completion in pgrep in addition to killall.

diff --git a/bash_completion b/bash_completion
index 383d23e..542031b 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 5d8c6cb..67453a6 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list