2017-08-04 13:01:56 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test the -V flag
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Testing -V
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Testing -V with changed variables
|
2017-03-26 20:38:59 +08:00
|
|
|
fish: function: Illegal function name '-a'
|
|
|
|
function -a arg1 arg2 name2 ; end
|
|
|
|
^
|
|
|
|
fish: function: Illegal function name '--argument-names'
|
|
|
|
function --argument-names arg1 arg2 name4 ; end
|
|
|
|
^
|
|
|
|
fish: function: Unexpected positional argument 'abc'
|
|
|
|
function name5 abc --argument-names def ; end
|
|
|
|
^
|
2017-08-04 13:01:56 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify that functions can be copied. Tests against regression of issue #3601
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Checking that the copied functions are identical other than the name
|