Use ${x##*/} instead of calling basename. (trunk r13064)
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Mar 2009 05:56:01 +0000 (05:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Mar 2009 05:56:01 +0000 (05:56 -0000)
svn path=/main/branches/2.1.6/; revision=13078

bin/ebuild-helpers/doexe

index 6e72c1c7541e7d83b0be062b4494a2a8473e92bc..36880477c5ecc2437138f9d05cefa45b5fd8ca04 100755 (executable)
@@ -17,7 +17,7 @@ fi
 for x in "$@" ; do
        if [ -L "${x}" ] ; then
                cp "${x}" "${T}"
-               mysrc="${T}"/$(/usr/bin/basename "${x}")
+               mysrc="$T/${x##*/}"
        elif [ -d "${x}" ] ; then
                vecho "doexe: warning, skipping directory ${x}"
                continue