mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
320cb6857f
Specifically, an invalid flag keeps the function from being defined but does not emit an error message. Fixes #2827
9 lines
305 B
Text
9 lines
305 B
Text
function: Illegal function name '-a'
|
|
fish: function -a arg1 arg2 name2 ; end
|
|
^
|
|
function: Illegal function name '--argument-names'
|
|
fish: function --argument-names arg1 arg2 name4 ; end
|
|
^
|
|
function: Unexpected positional argument 'abc'
|
|
fish: function name5 abc --argument-names def ; end
|
|
^
|