From 7b154d16e965f687887d6615bb5b15903aa9585f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 24 Apr 2010 10:57:43 +0200 Subject: [PATCH 4/4] 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 2acb3b3..3395641 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= -- 1.7.0.4