From: Michał Górny Date: Sat, 24 Apr 2010 08:57:43 +0000 (+0200) Subject: Quote paths for 'call stack' display. X-Git-Tag: v2.2_rc68~643 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=044253371b2fefb348f30e0fba81efd2267b1390;p=portage.git Quote paths for 'call stack' display. Added missing quoting around the path passed to basename when printing 'Call stack' on die(). This should fix the issue where basename syntax error was displayed instead of the source file name. --- diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 5401e2539..fa23b6675 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -43,7 +43,7 @@ dump_trace() { eerror "Call stack:" while (( n > ${strip} )) ; do funcname=${FUNCNAME[${n} - 1]} - sourcefile=$(basename ${BASH_SOURCE[${n}]}) + sourcefile=$(basename "${BASH_SOURCE[${n}]}") lineno=${BASH_LINENO[${n} - 1]} # Display function arguments args=