diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-09 21:49:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-09 21:49:12 +1200 |
commit | 899cb9446ed369efddae4303fe84e99a543bb8fe (patch) | |
tree | c25de5a8e45e26858194329ae209114d5ebb4dfd /README.markdown | |
parent | Preserve SSH_CLIENT as well as SSH_CONNECTION (diff) | |
download | dotfiles-899cb9446ed369efddae4303fe84e99a543bb8fe.tar.gz dotfiles-899cb9446ed369efddae4303fe84e99a543bb8fe.zip |
Better syntax for array append
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index a7e7aea6..3ae02e61 100644 --- a/README.markdown +++ b/README.markdown @@ -80,7 +80,7 @@ less error-prone `[[` test syntax was introduced. This is why I use older syntax for certain things such as appending items to arrays: ```bash -array[${#array[@]}]=$item +array=("${array[@]}" "$item") ``` Compare this to the much nicer syntax available since 3.1-alpha1, which |