[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12966: cut: Problems with overlapping, open-ended ranges
From: |
Bernhard Voelker |
Subject: |
bug#12966: cut: Problems with overlapping, open-ended ranges |
Date: |
Sat, 24 Nov 2012 13:15:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 |
On 11/24/2012 08:11 AM, Jim Meyering wrote:
> Subject: [PATCH] cut: interpret "-b3-,2-" like "-b2-", not like "-b3-"
Isn't it the other way round? I.e. "-b3-,2-" has already been working
correctly.
- Subject: [PATCH] cut: interpret "-b3-,2-" like "-b2-", not like "-b3-"
+ Subject: [PATCH] cut: interpret "-b2-,3-" like "-b2-", not like "-b3-"
> diff --git a/NEWS b/NEWS
> index 15fddd4..284525e 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -14,6 +14,10 @@ GNU coreutils NEWS -*-
> outline -*-
> Instead, cut now fails and emits an appropriate diagnostic.
> [This bug was present in "the beginning".]
>
> + cut now handles overlapping right-open-ended ranges properly. Before,
> + it would interpret "-b3-,2-" like "-b3-". Now it's treated like "-b2-".
> + [This bug was present in "the beginning".]
> +
Likewise.
> diff --git a/THANKS.in b/THANKS.in
> index 016a41e..3080cd3 100644
> --- a/THANKS.in
> +++ b/THANKS.in
> @@ -367,6 +367,7 @@ Marc Haber address@hidden
> Marc Mengel address@hidden
> Marc Lehman address@hidden
> Marc Olzheim address@hidden
> +Marcel Böhme address@hidden
> Marco Franzen address@hidden
> Marcus Brinkmann http://www.marcus-brinkmann.de
> Marcus Daniels address@hidden
That change will conflict with Padraig's pending patch for
http://bugs.gnu.org/12959.
Otherwise, the patch looks good.
BTW: interestingly, the i18n patch of openSuSE downstream
already had such a fix included for ages (line 215):
https://build.opensuse.org/package/view_file?file=coreutils-i18n.patch&package=coreutils&project=Base%3ASystem
Have a nice day,
Berny