]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh: suppress aliases and shell functions when calling systemctl
authorRonan Pigott <ronan@rjp.ie>
Mon, 17 Jul 2023 23:17:20 +0000 (16:17 -0700)
committerRonan Pigott <ronan@rjp.ie>
Mon, 17 Jul 2023 23:20:03 +0000 (16:20 -0700)
This prevents any errors in case the user had aliased some arguments
following systemctl.

shell-completion/zsh/_systemctl.in

index d533734d8d805170441ef5bd7ab9f3f921c0d0d4..666649e858b9244e60dcd4d9bae0c8a3785511cc 100644 (file)
 # @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
 }