On 03/05/2012 02:35 AM, Pádraig Brady wrote:
> On 03/05/2012 09:07 AM, Bernhard Voelker wrote:
>> On 03/03/2012 10:00 PM, Pádraig Brady wrote:
>>> Yes, I agreed with Eric that -0 was useful,
>>
>> If basename is used as a filter in the middle of pipe,
>> then I think it maybe would make sense to have a 0-option
>> for the output:
>>
>> find . -type f -print0 \
>>   | xargs -0 -r0 basename --out-null \
>>   | xargs -0 -r0 do_something_else
>>
>> What do you think?
> 
> Grr, yes to support file names containing '\n'.

The last time this came up:

https://lists.gnu.org/archive/html/coreutils/2011-01/msg00081.html

Read that whole thread before implementing anything.

-- 
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to