[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #26883] "or" condition and -exec directive
From: |
Eric Blake |
Subject: |
[bug #26883] "or" condition and -exec directive |
Date: |
Thu, 25 Jun 2009 18:59:06 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 Mnenhy/0.7.5.666 |
Follow-up Comment #4, bug #26883 (project findutils):
Using tr and xargs -0 is not secure; in other words, it is the same as if you
had done:
find -iname '*.scala' -o -iname '*.java' | xargs echo
The whole point of 'xargs -0' is that it is only useful if you already had
secure file names passed to xargs in the first place.
You probably want:
find ( -iname '*.scala' -o -iname '*.java' ) -print0 | xargs -0 echo
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?26883>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/