From: Zbigniew Jędrzejewski-Szmek Date: Wed, 11 Jan 2017 19:45:19 +0000 (-0500) Subject: shell-completion: redirect all errors from systemctl to /dev/null X-Git-Tag: v233~239^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99171d2fdf720ebb64fee75db4177af5d048d0f9;p=thirdparty%2Fsystemd.git shell-completion: redirect all errors from systemctl to /dev/null Completion scripts should not generate errors, ever. https://bugzilla.redhat.com/show_bug.cgi?id=1409649 --- diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index dcf71a1f512..34589e2888e 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -19,7 +19,7 @@ __systemctl() { local mode=$1; shift 1 - systemctl $mode --full --no-legend "$@" + systemctl $mode --full --no-legend "$@" 2>/dev/null } __systemd_properties() { diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index 03a1c930b09..d77a2df74ee 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -91,7 +91,7 @@ __systemctl() { - systemctl $_sys_service_mgr --full --no-legend --no-pager "$@" + systemctl $_sys_service_mgr --full --no-legend --no-pager "$@" 2>/dev/null }