aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r--bash/bashrc.d/ls.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index 356be541..93d6a9ec 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -10,12 +10,12 @@ __lsopts() {
# If the --color option is available and we have a terminal that supports
# at least eight colors, add --color=auto to the options
local -i colors="$(tput colors)"
- if [[ "$lshelp" == *--color* ]] && ((colors >= 8)); then
+ if [[ $lshelp == *--color* ]] && ((colors >= 8)); then
lsopts[${#lsopts[@]}]='--color=auto'
fi
# Print the options as a single string, space-delimited
- printf -- "${lsopts[*]}"
+ printf '%s' "${lsopts[*]}"
}
# Alias ls with these options