f4de8c5b3a977d67ecbd302f24463dc00667eb40

Author
sevendials <christj@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

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...
```

Diff

 1diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
 2index cbf9a0a8e5c2a67fdcea9b5a49cb4cbb89d0674d..3ec13429cdfe02bcda74354fd395814e7f7881a3 100644
 3--- a/plugins/command-not-found/command-not-found.plugin.zsh
 4+++ b/plugins/command-not-found/command-not-found.plugin.zsh
 5@@ -38,7 +38,7 @@ fi
 6 if [[ -x /usr/libexec/pk-command-not-found ]]; then
 7   command_not_found_handler() {
 8     if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then
 9-      /usr/libexec/pk-command-not-found -- "$@"
10+      /usr/libexec/pk-command-not-found "$@"
11       return $?
12     fi
13