mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Revert "Remove print_hints from builtin_missing_argument and builtin_unknown_option"
Unfortunately print_hints was true *by default* - so for all builtins
that didn't pass it it would now be false instead.
This resulted in the trailer missing, which includes the line number
and context. So if you ran a script that includes `bind -M` the error
message would now just be "bind: -M: option requires an argument",
with no indication as to where.
This reverts commit 8a50d47a46.
This commit is contained in:
@@ -65,3 +65,11 @@ $fish -c 'echo {$,}'
|
||||
# CHECKERR: fish: Expected a variable name after this $.
|
||||
# CHECKERR: echo {$,}
|
||||
# CHECKERR: ^
|
||||
|
||||
echo "bind -M" | $fish
|
||||
# CHECKERR: bind: -M: option requires an argument
|
||||
# CHECKERR: Standard input (line 1):
|
||||
# CHECKERR: bind -M
|
||||
# CHECKERR: ^
|
||||
# CHECKERR: (Type \'help bind\' for related documentation)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user