aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-14 17:54:48 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-14 17:54:48 +1300
commit2c9701dc45539c69441e0e0d71bb7b632e3e077c (patch)
treeafdd9431988568c8fcc468e6aac9eda1e72c7d4f
parentLocalise a stray variable (diff)
downloaddotfiles-2c9701dc45539c69441e0e0d71bb7b632e3e077c.tar.gz
dotfiles-2c9701dc45539c69441e0e0d71bb7b632e3e077c.zip
Update README with newly adopted array app method
-rw-r--r--README.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 2a23a39d..61a86ec5 100644
--- a/README.markdown
+++ b/README.markdown
@@ -113,7 +113,7 @@ newer](http://wiki.bash-hackers.org/scripting/bashchanges). 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