[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-498-g717cfed
Ville Skyttä
ville.skytta at iki.fi
Fri Nov 4 19:18:34 UTC 2011
The following commit has been merged in the master branch:
commit 717cfed94fe6a96599b5c016aea66a1def1f2b88
Author: Ville Skyttä <ville.skytta at iki.fi>
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
More information about the Bash-completion-commits
mailing list