Update test.sh
This commit is contained in:
2
test.sh
2
test.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user