summaryrefslogtreecommitdiffstats
path: root/tests/array13.sub
blob: 635cb977a583cbde53be70dc9553ff520095b0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
func1(){
declare -g variable='function'
declare -g -a array=(function)
echo  ${variable} ${array[@]}
}

declare -g variable='main'
declare -g -a array=(main)
echo  ${variable} ${array[@]}
func1
echo  ${variable} ${array[@]}