diff -ru a/crossdev b/crossdev --- a/crossdev 2012-07-28 08:18:25.354097649 -0400 +++ b/crossdev 2012-07-28 08:18:42.813100475 -0400 @@ -296,7 +296,7 @@ # see if user told us where to write things, otherwise # install our stuff to the last overlay in the list : ${CROSSDEV_OVERLAY:=${SEARCH_OVERLAYS}} - CROSSDEV_OVERLAY=${CROSSDEV_OVERLAY%% *} + CROSSDEV_OVERLAY=${CROSSDEV_OVERLAY##* } # make sure we have a valid logdir : ${PORT_LOGDIR:=/var/log/portage}