GNU bug report logs - #20088
-a changes whether a match is found

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Wed, 11 Mar 2015 17:39:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jim Meyering <jim <at> meyering.net>
Subject: bug#20088: closed (Re: bug#20088: -a changes whether a match is
 found)
Date: Wed, 11 Mar 2015 21:54:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#20088: -a changes whether a match is found

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 20088 <at> debbugs.gnu.org.

-- 
20088: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20088
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Andreas Schwab <schwab <at> suse.de>, 20088-done <at> debbugs.gnu.org
Subject: Re: bug#20088: -a changes whether a match is found
Date: Wed, 11 Mar 2015 14:53:26 -0700
On Wed, Mar 11, 2015 at 11:02 AM, Paul Eggert <eggert <at> cs.ucla.edu> 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 which case I'm closing this issue, too.

[Message part 3 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: bug-grep <at> gnu.org
Cc: Andreas Schwab <schwab <at> suse.de>
Subject: -a changes whether a match is found
Date: Wed, 11 Mar 2015 10:38:28 -0700
--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://bugs.gnu.org/20080.



This bug report was last modified 10 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.