From: Zac Medico Date: Sat, 20 Jan 2007 22:01:02 +0000 (-0000) Subject: Use XARGS for portable xargs handling when find doesn't find any files. X-Git-Tag: v2.1.2-r2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a52a3a3ea52a8c8f11f4acda357bda22ba99c3f;p=portage.git Use XARGS for portable xargs handling when find doesn't find any files. svn path=/main/branches/2.1.2/; revision=5740 --- diff --git a/bin/ecompressdir b/bin/ecompressdir index 5d8c53581..47ea5db41 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -28,7 +28,7 @@ for dir in "$@" ; do vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}" fi - find "${dir}" -type f '!' -name '*'${suffix} -print0 | xargs -0 ecompress + find "${dir}" -type f '!' -name '*'${suffix} -print0 | ${XARGS} -0 ecompress ((ret+=$?)) find -L "${dir}" -type l | \ while read brokenlink ; do