fish-shell/tests/function.err
Kurtis Rader 320cb6857f 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
2016-11-22 16:17:51 -08:00

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
^