From 63c072e22503faa248bd31851311ef5c27c66de2 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 26 Jan 2019 21:50:49 +0100 Subject: [PATCH] default_command_not_found_handler: Only use $argv[1] That's probably the nicer fix, otherwise this would print things like Unknown command 'aiohsd 1 2 3' when it should just say Unknown command aiohsd --- share/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/config.fish b/share/config.fish index e67a1f1e7..90055f1ef 100644 --- a/share/config.fish +++ b/share/config.fish @@ -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 - printf "fish: Unknown command %s\n" (string escape -- "$argv") >&2 + printf "fish: Unknown command %s\n" (string escape -- $argv[1]) >&2 end if status --is-interactive