diff options
author | André Aparício <aparicio99@gmail.com> | 2012-07-19 23:35:40 +0100 |
---|---|---|
committer | André Aparício <aparicio99@gmail.com> | 2012-08-03 01:03:41 +0100 |
commit | d8876bc0f19842c9773284af2cee3c61a7dfdc39 (patch) | |
tree | b9cb2f4df56e0fa8b7f97d8392e46e52bf44d9a6 /scripts/var_def.bash | |
parent | Parser&Walker: Escape ' (diff) | |
download | libbash-d8876bc0f19842c9773284af2cee3c61a7dfdc39.tar.gz libbash-d8876bc0f19842c9773284af2cee3c61a7dfdc39.tar.bz2 libbash-d8876bc0f19842c9773284af2cee3c61a7dfdc39.zip |
Walker: Fix appending to an array of size 1
Diffstat (limited to 'scripts/var_def.bash')
-rw-r--r-- | scripts/var_def.bash | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/var_def.bash b/scripts/var_def.bash index fb6550d..dc47b6c 100644 --- a/scripts/var_def.bash +++ b/scripts/var_def.bash @@ -102,6 +102,10 @@ echo ${ARRAY12[@]} ARRAY13=() ARRAY13+=(4 5 6) echo ${ARRAY13[@]} +ARRAY14=(1) +ARRAY14+=(3) +ARRAY14+=(4 5) +echo ${ARRAY14[@]} declare num=42 echo $num unset num |