mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
default_command_not_found_handler: Join arguments
Without it, this would print the error multiple times, like Unknown command: echs Unknown command: 1 Unknown command: 2 Unknown command: 3 Fixes #5588.
This commit is contained in:
parent
a0fbb8dea7
commit
02628d1b02
2 changed files with 2 additions and 2 deletions
|
@ -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") >&2
|
||||
end
|
||||
|
||||
if status --is-interactive
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
fish: Unknown command 'syntax-error'
|
||||
fish: Unknown command syntax-error
|
||||
$XDG_CONFIG_HOME/fish/config.fish (line 2):
|
||||
syntax-error
|
||||
^
|
||||
|
|
Loading…
Reference in a new issue