[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new snapshot available: coreutils-8.29.57-2ed7c2.tar.xz
From: |
Pádraig Brady |
Subject: |
Re: new snapshot available: coreutils-8.29.57-2ed7c2.tar.xz |
Date: |
Wed, 27 Jun 2018 01:33:23 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 27/06/18 00:11, Pádraig Brady wrote:
> On 26/06/18 04:15, Assaf Gordon wrote:
>> I believe this is a false-positive.
>> The "framework_failure_" is triggered
>> when testing an invalid short option on line 37:
>> https://opengrok.housegordon.com/source/xref/coreutils/tests/misc/usage_vs_getopt.sh#37
>>
>> Programs are tested like so:
>>
>> chroot -/
>>
>> Then "grep" searches for "'/'" in STDERR (i.e.
>> single-quote,slash-single-quote).
>>
>> On this system (OpenBSD 6.2 with C locale), the error message does
>> not contain single-quotes and the 'grep' fails.
>
> Another assumption of getopt implementation.
> In your patch it's probably safer to not anchor your RE to $.
> I think the following `sed` also needs adjusting.
> I'll apply your patch with those tweaks.
Actually it would complicate the script to do that for little gain.
I've commented accordingly and am working with:
- grep -F "'/'" err || framework_failure_
+ grep " '*/'*" err || framework_failure_
+ # The following only handles the common case that has single quotes.
+ # as it simplifies to identify missing options only on common systems.
sed -n "1s/'\/'/'OPT'/p" < err >> pat || framework_failure_
cheers,
Pádraig.
Re: coreutils-8.29.57-2ed7c2 on Ubuntu 18.04, Bruno Haible, 2018/06/25
coreutils-8.29.57-2ed7c2 on Ubuntu 16.04, Bruno Haible, 2018/06/25
coreutils on CentOS 7, Bruno Haible, 2018/06/26