summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/sed2
1 files changed, 1 insertions, 1 deletions
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} "$@"