summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-02-02 16:32:36 -0500
committerMike Frysinger <vapier@gentoo.org>2016-02-03 13:51:41 -0500
commit485b78806bf288e68eae9988e2e9342df8d74959 (patch)
treea313380828e65cda718aa27cb26fecc9da095ddf
parentapp-shells/bash: bashrc: enable colors for all TERMS that end in "color" (diff)
downloadgentoo-485b78806bf288e68eae9988e2e9342df8d74959.tar.gz
gentoo-485b78806bf288e68eae9988e2e9342df8d74959.tar.bz2
gentoo-485b78806bf288e68eae9988e2e9342df8d74959.zip
app-shells/bash: bashrc: quote the output of dircolors #572582#8
The output of dircolors generally shouldn't be problematic even when it's unquoted (as it tends to be a long dense string w/out whitespace), but add quotes anyways just to be safe. Reported-by: konsolebox@gmail.com
-rw-r--r--app-shells/bash/files/bashrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc
index ed46b7d7e38..c5b449bf837 100644
--- a/app-shells/bash/files/bashrc
+++ b/app-shells/bash/files/bashrc
@@ -68,9 +68,9 @@ if ${use_color} ; then
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
if type -P dircolors >/dev/null ; then
if [[ -f ~/.dir_colors ]] ; then
- eval $(dircolors -b ~/.dir_colors)
+ eval "$(dircolors -b ~/.dir_colors)"
elif [[ -f /etc/DIR_COLORS ]] ; then
- eval $(dircolors -b /etc/DIR_COLORS)
+ eval "$(dircolors -b /etc/DIR_COLORS)"
fi
fi
else