uopdate
This commit is contained in:
14
test.sh
14
test.sh
@@ -20,15 +20,15 @@ fi
|
|||||||
|
|
||||||
function myfunc()
|
function myfunc()
|
||||||
{
|
{
|
||||||
local -n myresult="$1" || return 1
|
local -n __resultvar="$1" || return 1
|
||||||
myresult[0]="a"
|
__resultvar[0]="a"
|
||||||
myresult[1]="b"
|
__resultvar[1]="b"
|
||||||
echo 'yes';
|
echo 'yes';
|
||||||
if [ -f /etc/debian_version ] ; then
|
if [ -f /etc/debian_version ] ; then
|
||||||
myresult[2]="c"
|
__resultvar[2]="c"
|
||||||
myresult[3]="d"
|
__resultvar[3]="d"
|
||||||
myresult[4]="e"
|
__resultvar[4]="e"
|
||||||
fi
|
fi
|
||||||
echo "ok"
|
echo "ok"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user