This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RHEL incompatibility in crosstool-ng build gdb native script


Martin Guy wrote:

> >         -print | xargs -d\\n rm -fv 2>&1 | CT_DoLog ALL
> 
> Ignore that - it only removes one file!

What you want here is "-print0 | xargs -0 ...".  This allows filenames
with whitespace as well as only invoking the minimal number of rm
processes as dictated by the maximum argv length.

Brian

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]