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

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