From: Michał Górny Date: Sat, 17 Apr 2010 07:53:17 +0000 (+0000) Subject: Quote path for die snippet display. X-Git-Tag: v2.2_rc68~645 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c83340553c020146d3081cc86bb51966e036a6d4;p=portage.git Quote path for die snippet display. Added missing quoting around the path passed to sed when displaying ebuild snippet on die(). This should fix the issue where they weren't displayed due to the occurence of special characters in the path. --- diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 89e5e4b8b..5401e2539 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -123,7 +123,7 @@ die() { # erase the line and set the hold buffer to it (thus # erasing the hold buffer in the process) /[^\]$/{s:^.*$::;h}' \ - ${BASH_SOURCE[1]} \ + "${BASH_SOURCE[1]}" \ | sed -e '1d' -e 's:^:RETAIN-LEADING-SPACE:' \ | while read -r n ; do eerror " ${n#RETAIN-LEADING-SPACE}" ; done eerror