Pass all of $argv to pk-command-not-found (#8591)

Fixes #8579.
This commit is contained in:
Nils K 2021-12-28 05:56:31 +01:00 committed by GitHub
parent ac428b23e5
commit 1877253f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ Interactive improvements
- The command line is drawn in the correct place if the prompt has a trailing empty line (:issue:`8298`).
- ``history`` learned a new subcommand ``clear-session`` to erase all history from the current session (:issue:`5791`).
- Pressing :kbd:`Control-C` in ``fish_key_reader`` will no longer print the incorrect "Press [ctrl-C] again to exit" message (:issue:`8510`).
- The default command-not-found handler for Fedora/PackageKit now passes the whole command line, allowing for functionality such as running the suggested command directly (:issue:`8579`).
New or improved bindings
^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -32,7 +32,7 @@ else if contains -- suse $os || contains -- sles $os && type -q command-not-foun
# Check for Fedora's handler
else if test -f /usr/libexec/pk-command-not-found
function fish_command_not_found
/usr/libexec/pk-command-not-found $argv[1]
/usr/libexec/pk-command-not-found $argv
end
# Check in /usr/lib, where Ubuntu places this command
else if test -f /usr/lib/command-not-found