summaryrefslogtreecommitdiff
path: root/plugins/command-not-found/command-not-found.plugin.zsh
diff options
context:
space:
mode:
authorsevendials <christj@gmail.com>2021-05-03 07:49:41 -0700
committerGitHub <noreply@github.com>2021-05-03 16:49:41 +0200
commitf4de8c5b3a977d67ecbd302f24463dc00667eb40 (patch)
treec13310f588f4ce4ea8fa10fb316f2a96aeb3017e /plugins/command-not-found/command-not-found.plugin.zsh
parent70ab2928a5ecd2513d4f6a67beb10f79d64d5172 (diff)
downloadzsh-f4de8c5b3a977d67ecbd302f24463dc00667eb40.tar.gz
zsh-f4de8c5b3a977d67ecbd302f24463dc00667eb40.tar.bz2
zsh-f4de8c5b3a977d67ecbd302f24463dc00667eb40.zip
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... ```
Diffstat (limited to 'plugins/command-not-found/command-not-found.plugin.zsh')
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
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