Update test.sh

This commit is contained in:
2019-01-31 23:40:31 -06:00
parent 45a8c9ebe9
commit 69eb90429c

View File

@@ -23,9 +23,11 @@ function myfunc()
local -n myresult="$1" || return 1 local -n myresult="$1" || return 1
myresult[0]="a" myresult[0]="a"
myresult[1]="b" myresult[1]="b"
echo 'yes';
myresult[2]="c" myresult[2]="c"
myresult[3]="d" myresult[3]="d"
myresult[4]="e" myresult[4]="e"
echo "ok"
} }
# call function that constructs the array with the array name # call function that constructs the array with the array name