[Bash-completion-commits] [bash-completion] 01/04: wtf: Hush stderr when db file doesn't exist.

Ville Skyttä scop-guest at moszumanska.debian.org
Tue Nov 26 17:52:49 UTC 2013


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit f5df66f47653ebe781090411a8e03fa052053273
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Nov 26 19:37:25 2013 +0200

    wtf: Hush stderr when db file doesn't exist.
---
 completions/wtf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/completions/wtf b/completions/wtf
index cc8352f..d85e981 100644
--- a/completions/wtf
+++ b/completions/wtf
@@ -20,7 +20,8 @@ _wtf()
     done
     [[ -z $db ]] && db=${ACRONYMDB:-/usr/share/misc/acronyms*}
 
-    COMPREPLY=( $( compgen -W "$( cut -f 1 -s $db ) -f" -- "${cur^^}" ) )
+    COMPREPLY=( $( compgen -W "$( cut -f 1 -s $db 2>/dev/null ) -f" \
+        -- "${cur^^}" ) )
 } &&
 complete -F _wtf wtf
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list