From f4de8c5b3a977d67ecbd302f24463dc00667eb40 Mon Sep 17 00:00:00 2001 From: sevendials Date: Mon, 3 May 2021 07:49:41 -0700 Subject: [PATCH] fix(command-not-found): remove invalid argument for PackageKit (#9876) `pk-command-not-found` doesn't accept `--` as an argument. This is what happens when `--` is the first argument: ``` $ gem zsh: --: command not found... ``` --- plugins/command-not-found/command-not-found.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh index cbf9a0a8e..3ec13429c 100644 --- a/plugins/command-not-found/command-not-found.plugin.zsh +++ b/plugins/command-not-found/command-not-found.plugin.zsh @@ -38,7 +38,7 @@ fi if [[ -x /usr/libexec/pk-command-not-found ]]; then command_not_found_handler() { if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then - /usr/libexec/pk-command-not-found -- "$@" + /usr/libexec/pk-command-not-found "$@" return $? fi