diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-14 17:54:48 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-14 17:54:48 +1300 |
commit | 2c9701dc45539c69441e0e0d71bb7b632e3e077c (patch) | |
tree | afdd9431988568c8fcc468e6aac9eda1e72c7d4f | |
parent | Localise a stray variable (diff) | |
download | dotfiles-2c9701dc45539c69441e0e0d71bb7b632e3e077c.tar.gz dotfiles-2c9701dc45539c69441e0e0d71bb7b632e3e077c.zip |
Update README with newly adopted array app method
-rw-r--r-- | README.markdown | 2 |
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 |