Update test.sh

This commit is contained in:
2019-01-31 23:49:22 -06:00
parent 49cbe31662
commit 0a54b663e7

10
test.sh
View File

@@ -21,11 +21,11 @@ fi
function myfunc() function myfunc()
{ {
local -n __resultvar="$1" || return 1 local -n __resultvar="$1" || return 1
__resultvar[]="a" __resultvar[*]="a"
__resultvar[]="b" __resultvar[*]="b"
__resultvar[]="c" __resultvar[*]="c"
__resultvar[]="d" __resultvar[*]="d"
__resultvar[]="e" __resultvar[*]="e"
} }
# call function that constructs the array with the array name # call function that constructs the array with the array name