Update test.sh

This commit is contained in:
2019-01-31 23:49:02 -06:00
parent 3cf2709010
commit 49cbe31662

14
test.sh
View File

@@ -21,15 +21,11 @@ fi
function myfunc() function myfunc()
{ {
local -n __resultvar="$1" || return 1 local -n __resultvar="$1" || return 1
__resultvar['qwe']="a" __resultvar[]="a"
__resultvar['qwdeqwd']="b" __resultvar[]="b"
echo 'yes'; __resultvar[]="c"
if [ -f /etc/debian_version ] ; then __resultvar[]="d"
__resultvar['wdqwd']="c" __resultvar[]="e"
__resultvar['fhntyn']="d"
__resultvar['ojno']="e"
fi
echo "ok"
} }
# call function that constructs the array with the array name # call function that constructs the array with the array name