projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git]
/
tests
/
array13.sub
1
#!/bin/bash
2
3
func1(){
4
declare -g variable='function'
5
declare -g -a array=(function)
6
echo ${variable} ${array[@]}
7
}
8
9
declare -g variable='main'
10
declare -g -a array=(main)
11
echo ${variable} ${array[@]}
12
func1
13
echo ${variable} ${array[@]}