From 9d49b4c7e740fb909d8955d23aeb50b5d73d0b23 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Thu, 1 Sep 2016 17:19:19 +0200 Subject: Don't show error messages in bash completion Redirect bash error output to prevent displaying error messages in bash completion for ipa command. https://fedorahosted.org/freeipa/ticket/6273 Reviewed-By: David Kupka --- contrib/completion/ipa.bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/completion') diff --git a/contrib/completion/ipa.bash_completion b/contrib/completion/ipa.bash_completion index 36b82bdb7..33ad1709b 100644 --- a/contrib/completion/ipa.bash_completion +++ b/contrib/completion/ipa.bash_completion @@ -11,7 +11,7 @@ _ipa_commands() { - ipa help commands | sed -r 's/^([-[:alnum:]]*).*/\1/' | grep '^[[:alnum:]]' + ipa help commands 2>/dev/null | sed -r 's/^([-[:alnum:]]*).*/\1/' | grep '^[[:alnum:]]' } _ipa() -- cgit