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