From: Ronan Pigott Date: Mon, 17 Jul 2023 23:17:20 +0000 (-0700) Subject: zsh: suppress aliases and shell functions when calling systemctl X-Git-Tag: v254-rc3~10^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0fc94a19258030fad433eb4091479bba5ef043e;p=thirdparty%2Fsystemd.git zsh: suppress aliases and shell functions when calling systemctl This prevents any errors in case the user had aliased some arguments following systemctl. --- diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index d533734d8d8..666649e858b 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -153,7 +153,7 @@ # @todo _systemd-run has a helper with the same name, so we must redefine __systemctl() { - systemctl $_sys_service_mgr --full --legend=no --no-pager --plain "$@" 2>/dev/null + command systemctl $_sys_service_mgr --full --legend=no --no-pager --plain "$@" 2>/dev/null }