summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Górny <gentoo@mgorny.alt.pl>2010-04-24 10:57:43 +0200
committerZac Medico <zmedico@gentoo.org>2010-04-23 23:52:15 -0700
commit044253371b2fefb348f30e0fba81efd2267b1390 (patch)
tree30536773369c840ca56da332141d4adefeaa8ef9
parent6994173a25dba6a0ccd0242d6471882992453913 (diff)
downloadportage-044253371b2fefb348f30e0fba81efd2267b1390.tar.gz
portage-044253371b2fefb348f30e0fba81efd2267b1390.tar.bz2
portage-044253371b2fefb348f30e0fba81efd2267b1390.zip
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.
-rw-r--r--bin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
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=