On 03/11/2015 10:38 AM, Jim Meyering wrote:
--text (-a) is documented to change only the output, not grep's exit status.
It is documented, albeit too tersely. I tried to improve it by
installing the attached.
>From c71daa9998680001ae52b6a3f3e7889b2d1eb512 Mon Sep 17 00:00:00 2001
From: Paul
On Wed, Mar 11, 2015 at 11:02 AM, Paul Eggert wrote:
> On 03/11/2015 10:38 AM, Jim Meyering wrote:
>>
>> --text (-a) is documented to change only the output, not grep's exit
>> status.
>
> It is documented, albeit too tersely. I tried to improve it by installing
> the attached.
Thanks, Paul. In
--text (-a) is documented to change only the output, not grep's exit status.
Yet, it does change the exit status here:
$ printf "a\0b\n" | LC_ALL=C src/grep -la a.b; echo $?
(standard input)
0
$ printf "a\0b\n" | LC_ALL=C src/grep -l a.b; echo $?
1
Noted by Andreas Schwab in https://bu