From 2c9701dc45539c69441e0e0d71bb7b632e3e077c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 14 Dec 2015 17:54:48 +1300 Subject: Update README with newly adopted array app method --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.markdown') 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 -- cgit v1.2.3