From: Zac Medico Date: Thu, 12 Mar 2009 00:43:00 +0000 (-0000) Subject: Use ${x##*/} instead of calling basename. X-Git-Tag: v2.2_rc25~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f34117f19bc1796b7e8657655917e56cadcdfed7;p=portage.git Use ${x##*/} instead of calling basename. svn path=/main/trunk/; revision=13064 --- diff --git a/bin/ebuild-helpers/doexe b/bin/ebuild-helpers/doexe index 6e72c1c75..36880477c 100755 --- a/bin/ebuild-helpers/doexe +++ b/bin/ebuild-helpers/doexe @@ -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