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()
{
local -n __resultvar="$1" || return 1
__resultvar['qwe']="a"
__resultvar['qwdeqwd']="b"
echo 'yes';
if [ -f /etc/debian_version ] ; then
__resultvar['wdqwd']="c"
__resultvar['fhntyn']="d"
__resultvar['ojno']="e"
fi
echo "ok"
__resultvar[]="a"
__resultvar[]="b"
__resultvar[]="c"
__resultvar[]="d"
__resultvar[]="e"
}
# call function that constructs the array with the array name