diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-08 22:10:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-08 22:10:20 +0000 |
commit | da12cde0d48f59ef55562fe9ee80819868ead1ec (patch) | |
tree | 62b692c911863be0102090ad9d2394d1b8deea1c | |
parent | 478b974b1e8f84188d96444f9de14db99bcbfc4d (diff) | |
download | portage-da12cde0d48f59ef55562fe9ee80819868ead1ec.tar.gz portage-da12cde0d48f59ef55562fe9ee80819868ead1ec.tar.bz2 portage-da12cde0d48f59ef55562fe9ee80819868ead1ec.zip |
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
-rwxr-xr-x | bin/sed | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} "$@" |