From f961cdaada4f276dd7831e8570214c7e283a9156 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 28 Jun 2016 16:23:12 +1200 Subject: Remove GitHub-style Markdown fenced code block --- README.markdown | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index a2493b9d..1a37e662 100644 --- a/README.markdown +++ b/README.markdown @@ -115,16 +115,12 @@ work with [any version 2.05a or 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 actually works for arrays with sparse indexes, unlike the above syntax: -```bash -array+=("$item") -``` + array+=("$item") Where I do use features that are only available in versions of Bash newer than 2.05a, such as newer `shopt` options or `PROMPT_DIRTRIM`, they are only run -- cgit v1.2.3