From 0a54b663e75163f182e151c7a82e2c208d566deb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 31 Jan 2019 23:49:22 -0600 Subject: [PATCH] Update test.sh --- test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test.sh b/test.sh index 39acca5..fa9f618 100755 --- a/test.sh +++ b/test.sh @@ -21,11 +21,11 @@ fi function myfunc() { local -n __resultvar="$1" || return 1 - __resultvar[]="a" - __resultvar[]="b" - __resultvar[]="c" - __resultvar[]="d" - __resultvar[]="e" + __resultvar[*]="a" + __resultvar[*]="b" + __resultvar[*]="c" + __resultvar[*]="d" + __resultvar[*]="e" } # call function that constructs the array with the array name