mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-02 18:58:38 +08:00

Specifically, an invalid flag keeps the function from being defined but does not emit an error message. Fixes #2827
10 lines
305 B
Plaintext
10 lines
305 B
Plaintext
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
|
|
^
|