aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-01 00:59:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-01 00:59:38 +1200
commit9b51be856c90584d9b59df4bd19ded55b2d9fc1d (patch)
tree3e30565d39c47fc0b430831a8b16471f1f7cda8c /bash/bashrc.d/ls.bash
parentMore sensible use of local (diff)
downloaddotfiles-9b51be856c90584d9b59df4bd19ded55b2d9fc1d.tar.gz
dotfiles-9b51be856c90584d9b59df4bd19ded55b2d9fc1d.zip
Turns out older Bash is muddled by var=()
Initialisation with an array literal doesn't work in 2.05a
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r--bash/bashrc.d/ls.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index a67194b5..5756d728 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -5,7 +5,7 @@ lsopts() {
local lshelp=$(ls --help 2>/dev/null)
# Start collecting available options
- local lsopts=()
+ local -a lsopts
# If the --color option is available and we have a terminal that supports
# at least eight colors, add --color=auto to the options