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

Ville Skyttä ville.skytta at iki.fi
Fri Jun 12 17:27:03 UTC 2009


The following commit has been merged in the master branch:
commit a8723b42eae7a00715c4f8bd01992f82e984910c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jun 12 20:16:18 2009 +0300

    Use compgen -W instead of grepping $cur in mailman.

diff --git a/contrib/mailman b/contrib/mailman
index 45b7db3..85ab800 100644
--- a/contrib/mailman
+++ b/contrib/mailman
@@ -5,7 +5,7 @@
 
 _mailman_lists()
 {
-	COMPREPLY=( $( list_lists -b | grep "^$cur") )
+	COMPREPLY=( $( compgen -W '$( list_lists -b )' -- $cur ) )
 }
 
 _add_members()

-- 
bash-completion



More information about the Bash-completion-commits mailing list