diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 11:30:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 11:30:40 +1200 |
commit | c549fd2782547ebf37e0b7c08b70dba76b1a5eef (patch) | |
tree | 855535dba3539cb0d6ac9143af69dab3827cabd2 /bash/bashrc.d/ls.bash | |
parent | Use arithmetic expression for argument count (diff) | |
download | dotfiles-c549fd2782547ebf37e0b7c08b70dba76b1a5eef.tar.gz dotfiles-c549fd2782547ebf37e0b7c08b70dba76b1a5eef.zip |
Remove unneeded quoting within [[ ]]
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r-- | bash/bashrc.d/ls.bash | 4 |
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 |