summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <gentoo@mgorny.alt.pl>2010-04-17 07:53:17 +0000
committerZac Medico <zmedico@gentoo.org>2010-04-24 00:56:20 -0700
commitc83340553c020146d3081cc86bb51966e036a6d4 (patch)
tree726eb6ab2e7a7768e0e2c4e757c61e8773cb7650 /bin
parentfa374d36e153171a9e8f674c1b866a93e8f51d8f (diff)
downloadportage-c83340553c020146d3081cc86bb51966e036a6d4.tar.gz
portage-c83340553c020146d3081cc86bb51966e036a6d4.tar.bz2
portage-c83340553c020146d3081cc86bb51966e036a6d4.zip
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.
Diffstat (limited to 'bin')
-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 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