Correctly handle mixing named arguments with function name

Before this fix, `function -a arg1 name1` would produce a
function named 'arg1'. After this fix, it will produce a
function named 'name'. See #2068 for more.
This commit is contained in:
ridiculousfish
2015-05-17 14:17:01 -07:00
parent c26d317da5
commit 286c60bc9d
5 changed files with 86 additions and 33 deletions

View File

@@ -18,3 +18,7 @@ $bar: (5)
4: ''
5: '3'
$baz: (0)
Function name1 found
Function name2 found
Function name3 found
Function name4 found