[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use find ... | xargs rm -f instead of find ... -delete
From: |
David Kastrup |
Subject: |
Re: [PATCH] Use find ... | xargs rm -f instead of find ... -delete |
Date: |
Wed, 30 Dec 2009 09:59:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Graham Percival <address@hidden> writes:
>
>>> Then change it to something like this:
>>>
>>> find $(outdir)/offline-root -type l -print0 | xargs -0 rm -f --
>>>
>>> Or even this (completely POSIX compliant):
>>>
>>> find $(outdir)/offline-root -type -l -exec rm -f -- '{}' +
>>>
>>> (but then I've to patch it again, since find(1) on OpenBSD doesn't yet
>>> support the `-exec command {} +' primary).
>>
>> Well, if that's part of POSIX, then adding it can't be a bad
>> thing. :)
>
> Isn't AFAIK.
The '+' thing appears to be POSIX if I am reading the GNU documentation
correctly. I have my doubts regarding the veracity of this information
(but one could look that up), and about how widely it is implemented.
--
David Kastrup