fix bugs in examples

This commit is contained in:
Dylan Araps
2018-06-14 19:39:26 +10:00
parent 4c52026a21
commit dd284224c7
2 changed files with 33 additions and 6 deletions

View File

@@ -226,10 +226,8 @@ reverse_array() {
# Usage: reverse_array "array"
# reverse_array 1 2 3 4 5 6
shopt -s extdebug
f()(printf '%s ' "${BASH_ARGV[@]}"); f "$@"
f()(printf '%s\n' "${BASH_ARGV[@]}"); f "$@"
shopt -u extdebug
printf '\n'
}
```