mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 16:03:00 +08:00
320cb6857f
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
|
|
^
|