Fix typo: %% -> ##.
authorZac Medico <zmedico@gentoo.org>
Tue, 18 Dec 2007 03:43:32 +0000 (03:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 18 Dec 2007 03:43:32 +0000 (03:43 -0000)
svn path=/main/trunk/; revision=8943

bin/sed

diff --git a/bin/sed b/bin/sed
index 27d6900b42e46a676219f0c1c6a058f60ef0b9dd..fa485ea845f16ca384eb7ce0e82c38567c2c4b12 100755 (executable)
--- a/bin/sed
+++ b/bin/sed
@@ -4,7 +4,7 @@
 # $Id$
 
 scriptpath=${BASH_SOURCE[0]}
-scriptname=${scriptpath%%*/}
+scriptname=${scriptpath##*/}
 
 if [[ sed == ${scriptname} ]] && [[ -n ${ESED} ]]; then
        exec ${ESED} "$@"