From 044253371b2fefb348f30e0fba81efd2267b1390 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 24 Apr 2010 10:57:43 +0200 Subject: [PATCH] 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(-) 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= -- 2.26.2