Subject: -a changes whether a match is found
From: Jim Meyering <[email-masked]>
To: [email-masked]
Cc: Andreas Schwab <[email-masked]>
Date: Wed, 11 Mar 2015 10:38:28 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

--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.