mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-19 01:31:15 -03:00
an invalid flag to function is handled wrong
Specifically, an invalid flag keeps the function from being defined but does not emit an error message. Fixes #2827
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user