[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: basename BSD compatibility and filter mode

From: Eric Blake
Subject: Re: basename BSD compatibility and filter mode
Date: Mon, 05 Mar 2012 06:27:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1

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:

Read that whole thread before implementing anything.

Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]