aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-30 21:40:34 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-30 21:40:34 +1200
commitbfd8cd62a9f60f69d0f242d366f1df48ec9dbb92 (patch)
tree5d8ee5c456d9e4ff159d553c4931b6c3a1ef1e63 /bash/bashrc.d/ls.bash
parentack-ish alias for git (diff)
downloaddotfiles-bfd8cd62a9f60f69d0f242d366f1df48ec9dbb92.tar.gz
dotfiles-bfd8cd62a9f60f69d0f242d366f1df48ec9dbb92.zip
Place missing quotes
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 26448e10..076f34df 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -1,10 +1,10 @@
# Function returns calculated options for ls
__lsopts() {
local lsopts=
- local lshelp=$(ls --help 2>/dev/null)
+ local lshelp="$(ls --help 2>/dev/null)"
[[ "$lshelp" == *--color* ]] \
&& lsopts="${lsopts} --color=auto"
- printf '%s' $lsopts
+ printf '%s' "$lsopts"
}
# Alias ls with these options