diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-26 17:34:49 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-26 20:04:42 +0800 |
commit | 6d95304b292a398ddfd42a2ef1115cf8e94928b5 (patch) | |
tree | dae4147092375003401630951845efa6b2e3f313 /scripts | |
parent | Parser: allow ';' after local and export (diff) | |
download | libbash-6d95304b292a398ddfd42a2ef1115cf8e94928b5.tar.gz libbash-6d95304b292a398ddfd42a2ef1115cf8e94928b5.tar.bz2 libbash-6d95304b292a398ddfd42a2ef1115cf8e94928b5.zip |
Walker: support appending array to array
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/var_def.bash | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/var_def.bash b/scripts/var_def.bash index e757b16..96747c0 100644 --- a/scripts/var_def.bash +++ b/scripts/var_def.bash @@ -88,3 +88,11 @@ function foo() { foo bar=@ echo $bar +ARRAY11=(1 2 3 [10]=15) +ARRAY11+=(1 [15]=20) +echo ${ARRAY11[@]} +ARRAY12+=(4 5 6) +echo ${ARRAY12[@]} +ARRAY13=() +ARRAY13+=(4 5 6) +echo ${ARRAY13[@]} |