The following commit has been merged in the master branch:
commit 717cfed94fe6a96599b5c016aea66a1def1f2b88
Author: Ville Skyttä <[email protected]>
Date:   Fri Nov 4 21:17:58 2011 +0200

    cowsay: Avoid error when completing -f when cowsay is not installed.

diff --git a/completions/cowsay b/completions/cowsay
index 47c2e52..8e96b91 100644
--- a/completions/cowsay
+++ b/completions/cowsay
@@ -7,7 +7,8 @@ _cowsay()
 
     case $prev in
         -f)
-            COMPREPLY=( $( compgen -W '$( cowsay -l | tail -n +2)' -- "$cur" ) 
)
+            COMPREPLY=( $( compgen -W \
+                '$( cowsay -l 2>/dev/null | tail -n +2 )' -- "$cur" ) )
             return 0
             ;;
     esac

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to