tomaskrizek's pull request #49: "Don't show error messages in bash completion" was opened
PR body: """ Redirect bash error output to prevent displaying error messages in bash completion for ipa command. https://fedorahosted.org/freeipa/ticket/6273 """ See the full pull-request at https://github.com/freeipa/freeipa/pull/49 ... or pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/49/head:pr49 git checkout pr49
From dce23245ebbeaa55b2ca87f8a94c4dd8e99d7d1b Mon Sep 17 00:00:00 2001 From: Tomas Krizek <tkri...@redhat.com> Date: Thu, 1 Sep 2016 17:19:19 +0200 Subject: [PATCH] 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 --- contrib/completion/ipa.bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/ipa.bash_completion b/contrib/completion/ipa.bash_completion index 36b82bd..33ad170 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()
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code