From da12cde0d48f59ef55562fe9ee80819868ead1ec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 8 Jun 2006 22:10:20 +0000 Subject: [PATCH] Use ${BASH_SOURCE[0]} instead of $_ because the former is more dependable for preventing endless exec loops (see bug #135470). Testing shows that this corrects the problem for the libtool ebuild when sed is used to generate ltmain.shT. svn path=/main/trunk/; revision=3475 --- bin/sed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sed b/bin/sed index 6b1a56639..d4b1d87b2 100755 --- a/bin/sed +++ b/bin/sed @@ -2,7 +2,7 @@ # Copyright 2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -scriptpath=$_ +scriptpath="${BASH_SOURCE[0]}" if [[ -n ${ESED} ]]; then exec ${ESED} "$@" -- 2.26.2