illumos-port-bash/tests/array13.sub

13 lines
225 B
Plaintext

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[@]}