aboutsummaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-09 21:49:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-09 21:49:12 +1200
commit899cb9446ed369efddae4303fe84e99a543bb8fe (patch)
treec25de5a8e45e26858194329ae209114d5ebb4dfd /README.markdown
parentPreserve SSH_CLIENT as well as SSH_CONNECTION (diff)
downloaddotfiles-899cb9446ed369efddae4303fe84e99a543bb8fe.tar.gz
dotfiles-899cb9446ed369efddae4303fe84e99a543bb8fe.zip
Better syntax for array append
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
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