diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-28 16:23:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-28 16:23:12 +1200 |
commit | f961cdaada4f276dd7831e8570214c7e283a9156 (patch) | |
tree | 6056145d617aa5f77ae6ce931007d6564e2b2f29 /README.markdown | |
parent | Remove typographic niceties from README (diff) | |
download | dotfiles-f961cdaada4f276dd7831e8570214c7e283a9156.tar.gz dotfiles-f961cdaada4f276dd7831e8570214c7e283a9156.zip |
Remove GitHub-style Markdown fenced code block
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 8 |
1 files changed, 2 insertions, 6 deletions
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 |