diff options
| author | sevendials <christj@gmail.com> | 2021-05-03 07:49:41 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-03 16:49:41 +0200 | 
| commit | f4de8c5b3a977d67ecbd302f24463dc00667eb40 (patch) | |
| tree | c13310f588f4ce4ea8fa10fb316f2a96aeb3017e | |
| parent | 70ab2928a5ecd2513d4f6a67beb10f79d64d5172 (diff) | |
| download | zsh-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...
```
| -rw-r--r-- | plugins/command-not-found/command-not-found.plugin.zsh | 2 | 
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  | 
