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