bug-grep
[Top][All Lists]
Advanced

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

bug#20088: -a changes whether a match is found


From: Jim Meyering
Subject: bug#20088: -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.





reply via email to

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