blob: 736f210cc0094c034c54621f5856120953f3602d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
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[@]}
|