grep-devel
[Top][All Lists]
Advanced

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

Re: grep-3.8.35-c860 on Alpine Linux


From: Jim Meyering
Subject: Re: grep-3.8.35-c860 on Alpine Linux
Date: Thu, 2 Mar 2023 22:16:47 -0800

On Wed, Mar 1, 2023 at 4:16 AM Bruno Haible <bruno@clisp.org> wrote:
> On Alpine Linux 3.14, all tests pass, like in the previously tested snapshot
> https://lists.gnu.org/archive/html/grep-devel/2023-01/msg00006.html
>
> But on Alpine Linux 3.17, there is one test failure:
> FAIL: fmbtest
>
> Find attached the log file.

Thank you for highlighting this failure.
it appears to be due to a bug in their version of tr.
Here's a snippet from your log:

+ tr -cs 0-9 '[ *]'
+ LC_ALL=C env -- tr -cs 0-9 '[ *]'
+ LC_ALL=cs_CZ.UTF-8 grep -F -f cspatfile csinput
+ echo ]11]12]13]14]15]16]17]18]
+ test1=]11]12]13]14]15]16]17]18]
+ test ]11]12]13]14]15]16]17]18] '!=' '11 12 13 14 15 16 17 18'
+ echo 'Test #1 F failed: ]11]12]13]14]15]16]17]18]'
Test #1 F failed: ]11]12]13]14]15]16]17]18]

That corresponds to this code:

test1=$(echo $(LC_ALL=$cz grep -${mode} -f cspatfile csinput |
               tr -cs '0-9' '[ *]'))
if test "$test1" != "11 12 13 14 15 16 17 18"; then
  echo "Test #1 ${mode} failed: $test1"
  failures=1
fi

and the value of $test1 somehow has a "]" in each position where
normally we'd expect a space.
That suggests the tr filter malfunctioned.

This failure does not block the release.



reply via email to

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