[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:
https://lists.gnu.org/archive/html/coreutils/2011-01/msg00081.html
Read that whole thread before implementing anything.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: basename BSD compatibility and filter mode, (continued)
- Re: basename BSD compatibility and filter mode, Pádraig Brady, 2012/03/06
- Re: basename BSD compatibility and filter mode, Jérémy Compostella, 2012/03/06
- Re: basename BSD compatibility and filter mode, Pádraig Brady, 2012/03/07
- Re: basename BSD compatibility and filter mode, Eric Blake, 2012/03/07
- Re: basename BSD compatibility and filter mode, Jérémy Compostella, 2012/03/09
- Re: basename BSD compatibility and filter mode, Bernhard Voelker, 2012/03/05
- Re: basename BSD compatibility and filter mode, Pádraig Brady, 2012/03/05
- Re: basename BSD compatibility and filter mode,
Eric Blake <=