From ddee4fef83539a5bc66b3c76086dd6ba2ab1f77c Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 25 Nov 2012 11:33:10 +0100 Subject: __sb_append_var(): Quote tr arguments to avoid filename expansion. Avoid a subshell. --- bin/ebuild.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index d83789c49..80bdd8001 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -113,8 +113,7 @@ unset GZIP BZIP BZIP2 CDPATH GREP_OPTIONS GREP_COLOR GLOBIGNORE __sb_append_var() { local _v=$1 ; shift local var="SANDBOX_${_v}" - [[ -z $1 || -n $2 ]] && die "Usage: add$(echo ${_v} | \ - LC_ALL=C tr [:upper:] [:lower:]) " + [[ -z $1 || -n $2 ]] && die "Usage: add$(LC_ALL=C tr "[:upper:]" "[:lower:]" <<< "${_v}") " export ${var}="${!var:+${!var}:}$1" } # bash-4 version: -- cgit v1.2.3-1-g7c22