From: Fabian Groffen Date: Wed, 16 Sep 2009 19:04:34 +0000 (-0000) Subject: Deal with spaces, especially OSX loves them X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=616775f5476e6d15bf3a47c109dfaf368f1ec737;p=portage.git Deal with spaces, especially OSX loves them svn path=/main/branches/prefix/; revision=14278 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 675a6c577..3d9f1b49d 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -483,8 +483,8 @@ install_qa_check() { rm -f "${T}"/non-prefix-shebangs-errs local WHITELIST=" /usr/bin/env " # this is hell expensive, but how else? - find "${ED}" -type f -executable \ - | xargs grep -H -n -m1 "^#!" \ + find "${ED}" -type f -executable -print0 \ + | xargs -0 grep -H -n -m1 "^#!" \ | while read f ; do fn=${f%%:*}