Escape command name in __fish_default_command_not_found_handler

Closes #5102
This commit is contained in:
Mahmoud Al-Qudsi 2018-09-19 18:24:39 -05:00
parent 5b59ab3d9c
commit 38ac7693e9

View file

@ -12,7 +12,7 @@ or set -g __fish_added_user_paths
# Create the default command_not_found handler
#
function __fish_default_command_not_found_handler
echo "fish: Unknown command '$argv'" >&2
printf "fish: Unknown command '%s'\n" (string escape $argv) >&2
end
if status --is-interactive