From unknown Fri Aug 15 15:55:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37716 <37716@debbugs.gnu.org> To: bug#37716 <37716@debbugs.gnu.org> Subject: Status: grep exit status with -L redirected to /dev/null Reply-To: bug#37716 <37716@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:55:40 +0000 retitle 37716 grep exit status with -L redirected to /dev/null reassign 37716 grep submitter 37716 Adam Sampson severity 37716 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 10:22:16 2019 Received: (at submit) by debbugs.gnu.org; 12 Oct 2019 14:22:16 +0000 Received: from localhost ([127.0.0.1]:34012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJIHg-00056g-8H for submit@debbugs.gnu.org; Sat, 12 Oct 2019 10:22:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:46874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJIHe-00056X-7n for submit@debbugs.gnu.org; Sat, 12 Oct 2019 10:22:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40095) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJIHc-0005gx-Ng for bug-grep@gnu.org; Sat, 12 Oct 2019 10:22:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJIHb-0008Rs-Gq for bug-grep@gnu.org; Sat, 12 Oct 2019 10:22:12 -0400 Received: from a-painless.mh.aa.net.uk ([2001:8b0:0:30::51]:41951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJIHb-0008RO-Bs for bug-grep@gnu.org; Sat, 12 Oct 2019 10:22:11 -0400 Received: from cartman.offog.org ([2001:8b0:83b:b53f::a]) by a-painless.mh.aa.net.uk with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iJIHa-00031f-JU for bug-grep@gnu.org; Sat, 12 Oct 2019 15:22:10 +0100 Received: from ats by cartman.offog.org with local (Exim 4.92.3) (envelope-from ) id 1iJIHV-0004bx-L0 for bug-grep@gnu.org; Sat, 12 Oct 2019 15:22:05 +0100 Date: Sat, 12 Oct 2019 15:22:05 +0100 From: Adam Sampson To: bug-grep@gnu.org Subject: grep exit status with -L redirected to /dev/null Message-ID: <20191012142205.GD1794@cartman.at.offog.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Homepage: http://offog.org/ User-Agent: Mutt/1.12.2 (2019-09-21) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:0:30::51 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi grep maintainers, This behaviour, with grep 3.3 built from source, is a bit surprising: $ echo hello >thing $ grep -L goodbye thing && echo OK thing OK $ grep -L goodbye thing >/dev/null && echo OK $ That is, when using -L, redirecting stdout to /dev/null has the same effect on the exit code as specifying -q (the behaviour with -q is described in the "Exit Status" section of the manual). This is a bit awkward if you're using grep in a script, because you don't necessarily have any control over whether stdout is /dev/null or not. Cheers, -- Adam Sampson From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 18:40:31 2019 Received: (at submit) by debbugs.gnu.org; 12 Oct 2019 22:40:31 +0000 Received: from localhost ([127.0.0.1]:34431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJQ3r-0004Uv-JK for submit@debbugs.gnu.org; Sat, 12 Oct 2019 18:40:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:44186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJQ3q-0004Ul-B7 for submit@debbugs.gnu.org; Sat, 12 Oct 2019 18:40:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJQ3o-0006pY-W2 for bug-grep@gnu.org; Sat, 12 Oct 2019 18:40:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJPu1-0000Kp-8X for bug-grep@gnu.org; Sat, 12 Oct 2019 18:30:22 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41261) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJPu1-0000KZ-1i for bug-grep@gnu.org; Sat, 12 Oct 2019 18:30:21 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B962C21BF7 for ; Sat, 12 Oct 2019 18:30:18 -0400 (EDT) Received: from imap24 ([10.202.2.74]) by compute1.internal (MEProxy); Sat, 12 Oct 2019 18:30:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XlgmRj eM54ICv+f3BhZ6II5rYdgUfk18+L9tZhQCMlM=; b=LrLcGJR5TcVNu7ms5jETN1 baY0oUQZ7+xRQR/ZbpX/HOAmAxK8Kq87PSdH7akPQw1rSr3j0Z8MCNSxY3m0VZGj 2zRya9zY/X+33JROKIVfNhNvg1ei1Z0za/zZ+QeV8hTyu2zghmJbQNxnzMo5fiXG obeZTaS8E78MmKfxi49rkRlUJnJJy8z0U+WY25WtR2VqK5ZEADBYqijnp+9UJU8s C6j8RHQbIx3U6qJEmfINHJDfZo0T/2iTmYZr3/EJSPRZF5iu/uB8bfanFLAL4eyy imzjOt+RVp81h7fx+cFvu1Cl0rEz90BHOfjD/sBIbeQf0nwrGHHT+ClQ1Yd8XITQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieekgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomhepfdfrrghulhculfgrtghkshhonhdfuceophhjsehushgrrdhn vghtqeenucfrrghrrghmpehmrghilhhfrhhomhepphhjsehushgrrdhnvghtnecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1F1DE2000A3; Sat, 12 Oct 2019 18:30:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-360-g7dda896-fmstable-20191004v2 Mime-Version: 1.0 Message-Id: In-Reply-To: <20191012142205.GD1794@cartman.at.offog.org> References: <20191012142205.GD1794@cartman.at.offog.org> Date: Sat, 12 Oct 2019 17:29:57 -0500 From: "Paul Jackson" To: bug-grep@gnu.org Subject: Re: bug#37716: grep exit status with -L redirected to /dev/null Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This also happens when doing "grep -L" for something that -is- in the file, redirected to /dev/null: ====== $ echo hello > thing $ grep -L hello thing; echo $? 1 $ grep -L hello thing > /dev/null; echo $? 0 ======= My first guess, after a minute glancing at the code, and after using strace to notice that grep doesn't even try to invoke a "write(2)" system call in these examples, if it notices that its output is redirected to /dev/null, is that the exit status of the grep command depends sometimes, somehow, on whether or not it decided to write out any results at all. My strace observations in the previous paragraph are probably reliable. My guess as to the logic grep is using to determine it's process exit status are probably not reliable. -- Paul Jackson pj@usa.net From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 19:17:03 2019 Received: (at submit) by debbugs.gnu.org; 12 Oct 2019 23:17:03 +0000 Received: from localhost ([127.0.0.1]:34473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJQdA-0007WJ-AV for submit@debbugs.gnu.org; Sat, 12 Oct 2019 19:17:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:54354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJQd7-0007WC-U2 for submit@debbugs.gnu.org; Sat, 12 Oct 2019 19:16:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44903) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJQd6-0000kF-PN for bug-grep@gnu.org; Sat, 12 Oct 2019 19:16:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJQQb-00067N-O9 for bug-grep@gnu.org; Sat, 12 Oct 2019 19:04:02 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38285) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJQQb-000670-KM for bug-grep@gnu.org; Sat, 12 Oct 2019 19:04:01 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E939F21E50 for ; Sat, 12 Oct 2019 19:04:00 -0400 (EDT) Received: from imap24 ([10.202.2.74]) by compute1.internal (MEProxy); Sat, 12 Oct 2019 19:04:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=DSoQJu g3gkDHhmubkJHXCG4x3TTVwO+fc2woPzASvaA=; b=ClBvCwCyzoWRL/8oE7uRe4 50aahlDymYjpRZj2o+Ba71+kgwD/JQ4i0cIO85jwwe2vmZg7fGJZwVZp34Ab0Vtw GyD1w4ObroEVxKDtFnLRzZQ/5ps8S4I9q01ePSi1n0hRl+O82uD2bDWukit0IYi6 LSQ4/CE6b7Ysk9EPqih4Hefv0Ycm6rLewZHazTp5MQY4yf5WFbNvWwjWiHOnhYkn giZuO0KH8kd5+vwfSJCJFn1/itFljAVUy/iF4JnyT2B0DQBx1nLW0Ne5WcmOBrga mm/P3qd/C3MJ8pO1hoNdJCReU0UP2prAt8861NMZopG1hdllGyBUFdTwJ0ChAtpg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieekgddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomhepfdfrrghulhculfgrtghkshhonhdfuceophhjsehushgrrdhn vghtqeenucfrrghrrghmpehmrghilhhfrhhomhepphhjsehushgrrdhnvghtnecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6C0EA2000A3; Sat, 12 Oct 2019 19:04:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-360-g7dda896-fmstable-20191004v2 Mime-Version: 1.0 Message-Id: <2f6708ee-509b-4e76-b355-5f470ce7f746@www.fastmail.com> In-Reply-To: References: <20191012142205.GD1794@cartman.at.offog.org> Date: Sat, 12 Oct 2019 18:03:40 -0500 From: "Paul Jackson" To: bug-grep@gnu.org Subject: Re: bug#37716: grep exit status with -L redirected to /dev/null Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.28 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Also it seems that if the output of "grep -L" is redirected to "/dev/tty", then the exit status of grep is reversed if also using the "-q" option. If the output of "grep -L" is redirected to "/dev/null", then its exit status polarity is not reversed by the "-q" option. -- Paul Jackson pj@usa.net From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 21:33:34 2019 Received: (at 37716-done) by debbugs.gnu.org; 13 Oct 2019 01:33:35 +0000 Received: from localhost ([127.0.0.1]:34608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJSlK-0006ig-II for submit@debbugs.gnu.org; Sat, 12 Oct 2019 21:33:34 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJSlH-0006iI-HJ for 37716-done@debbugs.gnu.org; Sat, 12 Oct 2019 21:33:32 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 53249160680; Sat, 12 Oct 2019 18:33:25 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id aq1hSOOx1_bN; Sat, 12 Oct 2019 18:33:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5E7ED160683; Sat, 12 Oct 2019 18:33:24 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9Ud3VcLHd4Ka; Sat, 12 Oct 2019 18:33:24 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 28FE7160680; Sat, 12 Oct 2019 18:33:24 -0700 (PDT) Subject: Re: bug#37716: grep exit status with -L redirected to /dev/null To: Adam Sampson References: <20191012142205.GD1794@cartman.at.offog.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <2eec8445-b28d-7fa7-9fcd-06a5185416f8@cs.ucla.edu> Date: Sat, 12 Oct 2019 18:33:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191012142205.GD1794@cartman.at.offog.org> Content-Type: multipart/mixed; boundary="------------8B5E458DF7DAFE01A249505F" Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37716-done Cc: Paul Jackson , 37716-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --------------8B5E458DF7DAFE01A249505F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for reporting that bug. To fix it, I installed the attached patch into grep master on Savannah. --------------8B5E458DF7DAFE01A249505F Content-Type: text/x-patch; name="0001-grep-fix-grep-L-.-dev-null-bug.patch" Content-Disposition: attachment; filename="0001-grep-fix-grep-L-.-dev-null-bug.patch" Content-Transfer-Encoding: quoted-printable >From 69a947f97e3389f409946d990820af4b00095fa6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 12 Oct 2019 18:31:04 -0700 Subject: [PATCH] =3D?UTF-8?q?grep:=3D20fix=3D20=3DE2=3D80=3D98grep=3D20-L= =3D20...=3D20>/dev/?=3D =3D?UTF-8?q?null=3DE2=3D80=3D99=3D20bug?=3D MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Problem reported by Adam Sampson (Bug#37716). * NEWS: Mention this. * src/grep.c (grepdesc): Don=E2=80=99t assume that stdout being /dev/null means list_files =3D=3D LISTFILES_NONE. (main): Do not change list_files merely because stdout is /dev/null. * tests/skip-read: Test for this bug. --- NEWS | 6 ++++++ src/grep.c | 4 ++-- tests/skip-read | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 5cb33cd..9ce65b3 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,12 @@ GNU grep NEWS -*- out= line -*- =20 * Noteworthy changes in release ?.? (????-??-??) [?] =20 +** Bug fixes + + The exit status of 'grep -L' is no longer incorrect when standard + output is /dev/null. + [Bug#37716 introduced in grep 3.2] + ** Build-related =20 The build procedure no longer relies on any already-built src/grep diff --git a/src/grep.c b/src/grep.c index 4b6b465..6f35f26 100644 --- a/src/grep.c +++ b/src/grep.c @@ -1864,7 +1864,7 @@ grepdesc (int desc, bool command_line) =20 status =3D !count =3D=3D !(list_files =3D=3D LISTFILES_NONMATCHING); =20 - if (list_files =3D=3D LISTFILES_NONE) + if (list_files =3D=3D LISTFILES_NONE || dev_null_output) finalize_input (desc, &st, ineof); else if (status =3D=3D 0) { @@ -2827,7 +2827,7 @@ main (int argc, char **argv) =20 /* POSIX says -c, -l and -q are mutually exclusive. In this implementation, -q overrides -l and -L, which in turn override -c. = */ - if (exit_on_match | dev_null_output) + if (exit_on_match) list_files =3D LISTFILES_NONE; if ((exit_on_match | dev_null_output) || list_files !=3D LISTFILES_NON= E) { diff --git a/tests/skip-read b/tests/skip-read index 3c32c48..2a17334 100755 --- a/tests/skip-read +++ b/tests/skip-read @@ -17,6 +17,7 @@ for opts in '-m0 y' '-f /dev/null' '-v ""'; do done eval grep -L $opts $matcher /dev/null > out || fail=3D1 compare exp out || fail=3D1 + eval grep -L $opts $matcher /dev/null > /dev/null || fail=3D1 done done =20 --=20 2.17.1 --------------8B5E458DF7DAFE01A249505F-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 15:08:04 2019 Received: (at 37716-done) by debbugs.gnu.org; 13 Oct 2019 19:08:04 +0000 Received: from localhost ([127.0.0.1]:37028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJjDo-0001SG-I1 for submit@debbugs.gnu.org; Sun, 13 Oct 2019 15:08:04 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:33926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJjDm-0001RX-F3 for 37716-done@debbugs.gnu.org; Sun, 13 Oct 2019 15:08:03 -0400 Received: by mail-wr1-f53.google.com with SMTP id j11so17186878wrp.1 for <37716-done@debbugs.gnu.org>; Sun, 13 Oct 2019 12:08:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TaOi/bDE4pbtDvdsygcSTdwz1Lk7D01nIBCrmcJroB0=; b=BWJx7j4/vo5hNMsfKNvWumIR/7AaAIjAwOb30ihOc7FAXkMiY08W6DGUpbxC6/Bej1 Eegb+vwkMi1eKG4r7/TF55PnsqtPU4Zv+R/3af/SGz0NESwo5Grzo6nmcMY9vbnSjBe9 n/5RFs3e44sQIdMNBxLPcDarHi+j+UfOfDr0h79QprJw4ZxQ5eFYp5uICPXhdakfGJzM a2sQE3bMioIMYDNP1+YyyVFYB15nrxyQS1Ne4ZrtIbjiTRxZmSs7Aat8S954CBjKlgLR GR8HCWUUd3ptSDs4xjUuW09tWn5bUFgiX/trHHCyM0evIkDxIRXh5ylefRycOh+QqQJ5 gfww== X-Gm-Message-State: APjAAAXV32vFnGmEUOG1HppRJmMR8er9N0nmsotvoA4hqH+LIoEND6Y1 dNNR1cMax6GauglFhq9PaWXLxFlcsCU2jl3iFPQ= X-Google-Smtp-Source: APXvYqyoor1pSh5bpVxCmxyZe5tqo8tOzjDACRuMKJpHNyMe7y/I6poawRNt/dlZ/3opyt7jw6CWa8OlehKlPE6Pxrk= X-Received: by 2002:adf:cc8e:: with SMTP id p14mr24276302wrj.301.1570993676710; Sun, 13 Oct 2019 12:07:56 -0700 (PDT) MIME-Version: 1.0 References: <20191012142205.GD1794@cartman.at.offog.org> <2eec8445-b28d-7fa7-9fcd-06a5185416f8@cs.ucla.edu> In-Reply-To: <2eec8445-b28d-7fa7-9fcd-06a5185416f8@cs.ucla.edu> From: Jim Meyering Date: Sun, 13 Oct 2019 12:07:44 -0700 Message-ID: Subject: Re: bug#37716: grep exit status with -L redirected to /dev/null To: Paul Eggert Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 37716-done Cc: 37716-done@debbugs.gnu.org, Adam Sampson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sat, Oct 12, 2019 at 6:34 PM Paul Eggert wrote: > Thanks for reporting that bug. To fix it, I installed the attached patch into > grep master on Savannah. Thank you both. That bug fix is a compelling argument for releasing grep-3.4, preferably within a month or two If anyone has pending changes, please post or ping about them. If you can help triage bug reports, we'd sure appreciate it. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 15:18:25 2019 Received: (at 37716-done) by debbugs.gnu.org; 13 Oct 2019 19:18:25 +0000 Received: from localhost ([127.0.0.1]:37033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJjNo-0001hb-HW for submit@debbugs.gnu.org; Sun, 13 Oct 2019 15:18:25 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:48454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJjNm-0001hN-RN for 37716-done@debbugs.gnu.org; Sun, 13 Oct 2019 15:18:23 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 348231605D8; Sun, 13 Oct 2019 12:18:17 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FZGACMSTq64k; Sun, 13 Oct 2019 12:18:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 82AE4160690; Sun, 13 Oct 2019 12:18:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iLfwawgSEfR0; Sun, 13 Oct 2019 12:18:16 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 57EA81605D8; Sun, 13 Oct 2019 12:18:16 -0700 (PDT) Subject: Re: bug#37716: grep exit status with -L redirected to /dev/null To: Jim Meyering References: <20191012142205.GD1794@cartman.at.offog.org> <2eec8445-b28d-7fa7-9fcd-06a5185416f8@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <30870966-5a7c-864d-9dcc-9ece34d0f1ea@cs.ucla.edu> Date: Sun, 13 Oct 2019 12:18:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37716-done Cc: 37716-done@debbugs.gnu.org, Adam Sampson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 10/13/19 12:07 PM, Jim Meyering wrote: > That bug fix is a compelling argument for releasing grep-3.4, > preferably within a month or two > If anyone has pending changes, please post or ping about them. > If you can help triage bug reports, we'd sure appreciate it. I'll pry loose some time to look at bug reports. Some of them have patches that should go in at some point, and I suppose now's as good a time as any unless the patch looks risky. From unknown Fri Aug 15 15:55:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator