|
From: | Andi Kleen |
Subject: | bug#41700: grep -v always exiting with 1 for empty file |
Date: | Wed, 3 Jun 2020 20:26:41 -0700 |
User-agent: | NeoMutt/20170113 (1.7.2) |
% grep --version grep (GNU grep) 3.4 ... % echo -n > foo % grep -v foo foo ; echo $? 1 Would expect it to exit with zero in this case, since foo is not in the file. When the file is one byte it works as expected: % echo > foo % grep -v foo foo ; echo $? 0 %
[Prev in Thread] | Current Thread | [Next in Thread] |