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