Quote path for die snippet display.
authorMichał Górny <gentoo@mgorny.alt.pl>
Sat, 17 Apr 2010 07:53:17 +0000 (07:53 +0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 24 Apr 2010 07:56:20 +0000 (00:56 -0700)
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.

bin/isolated-functions.sh

index 89e5e4b8bcb3b5c96bb51e12e5767f801ddabe12..5401e2539c7cbaabfe960d7427c970fbe8c64d90 100644 (file)
@@ -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