summaryrefslogtreecommitdiff
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
parentMake metadata.xml <flag/> errors non-fatal to repoman. (diff)
downloadportage-idfetch-044253371b2fefb348f30e0fba81efd2267b1390.tar.gz
portage-idfetch-044253371b2fefb348f30e0fba81efd2267b1390.tar.bz2
portage-idfetch-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 5401e253..fa23b667 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=