From 691deac1e4d22125ddfb2964a58898e2554f759b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 11 Sep 2020 20:56:38 +0200 Subject: [PATCH] Print default error in the pacman cnf-handler Pacman *only* prints the package if it exists, no error or anything. Fixes #7327. --- share/functions/fish_command_not_found.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/functions/fish_command_not_found.fish b/share/functions/fish_command_not_found.fish index a3fe32ae3..4e1ea7ac1 100644 --- a/share/functions/fish_command_not_found.fish +++ b/share/functions/fish_command_not_found.fish @@ -64,6 +64,8 @@ else if type -q pacman # otherwise pacman will try *every path*, and e.g. bash-completion # isn't helpful. string match -q '/*' -- $argv[1]; or set paths $PATH/$argv[1] + # Pacman only prints the path, so we still need to print the error. + __fish_default_command_not_found_handler $argv[1] pacman -F $paths end end