[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: |
Sat, 03 Mar 2012 07:35:29 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
On 03/03/2012 07:10 AM, Jérémy Compostella wrote:
> All,
>
> I'm interesting in implementing these features:
>
> 1. basename BSD options and behavior compatibility:
>
> Add the following options:
> -s, --suffix: specify the suffix
> -a, --multiple: every argument is treated as a string as if basename
> were invoked with just one argument.
>
> Moreover:
> - with more than two arguments basename acts as if -a was specified.
> - if -s is specified, act as if -a was specified too.
>
> Arguments for this feature is convenience and BSD compatibility. Let me
> know if this is sufficient to provide it in GNU/coreutils.
>
> 2. basesame acts as a filter:
>
> The http://lists.gnu.org/archive/html/coreutils/2011-01/msg00086.html
> post convince me that maybe this feature is not relevant because there
> are actually other very simple ways to achieve this.
>
> What do you think?
It's been brought up before, and the consensus has always been that if
someone would write the patches, it would be worthwhile. We do need
support for a -0 or some other way to do NUL-terminated filtering, though.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- basename BSD compatibility and filter mode, Jérémy Compostella, 2012/03/03
- Re: basename BSD compatibility and filter mode,
Eric Blake <=
- Re: basename BSD compatibility and filter mode, Pádraig Brady, 2012/03/03
- Re: basename BSD compatibility and filter mode, Jérémy Compostella, 2012/03/03
- 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