From 044253371b2fefb348f30e0fba81efd2267b1390 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 24 Apr 2010 10:57:43 +0200 Subject: 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. --- bin/isolated-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/isolated-functions.sh') 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= -- cgit v1.2.3-65-gdbad