From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.bugs Subject: bug#32093: 27.0.50; M-x grep appends /dev/null to command line Date: Sun, 08 Jul 2018 11:53:37 +0200 Message-ID: <87h8ladpem.fsf@fencepost.gnu.org> References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1531043527 2805 195.159.176.226 (8 Jul 2018 09:52:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2018 09:52:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 32093@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 11:52:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6MM-0000bZ-DK for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2018 11:52:02 +0200 Original-Received: from localhost ([::1]:36440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc6OT-0005xw-EC for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2018 05:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc6OM-0005xd-CB for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc6OI-0000GF-M0 for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42767) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fc6OI-0000GA-Hb for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fc6OI-0007lo-BJ for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Kastrup Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jul 2018 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32093 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32093-submit@debbugs.gnu.org id=B32093.153104363029851 (code B ref 32093); Sun, 08 Jul 2018 09:54:02 +0000 Original-Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 09:53:50 +0000 Original-Received: from localhost ([127.0.0.1]:50664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6O6-0007lP-Kp for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:53:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6O4-0007lA-TG for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 05:53:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc6Nw-0000Ao-GO for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 05:53:43 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc6Nw-0000Ai-CZ; Sun, 08 Jul 2018 05:53:40 -0400 Original-Received: from x4db54f11.dyn.telefonica.de ([77.181.79.17]:54298 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fc6Nv-0006P2-Rl; Sun, 08 Jul 2018 05:53:40 -0400 In-Reply-To: <87pnzyawdg.fsf@gmx.de> (Michael Albinus's message of "Sun, 08 Jul 2018 11:51:23 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148333 Archived-At: Michael Albinus writes: > David Kastrup writes: > >> I did not ask for /dev/null to be appended to the command line, and >> previous incantations didn't do it. Obviously, not all grep-kind >> programs are happy about that change. > > grep-use-null-device is a variable defined in =E2=80=98grep.el=E2=80=99. > Its value is =E2=80=98auto-detect=E2=80=99 > > Documentation: > If t, append the value of =E2=80=98null-device=E2=80=99 to =E2=80=98grep= =E2=80=99 commands. > This is done to ensure that the output of grep includes the filename of > any match in the case where only a single file is searched, and is not > necessary if the grep program used supports the =E2=80=98-H=E2=80=99 opti= on. > > In interactive usage, the actual value of this variable is set up > by =E2=80=98grep-compute-defaults=E2=80=99; to change the default value, = use > Customize or call the function =E2=80=98grep-apply-setting=E2=80=99. > > You can customize this variable. So you are saying there is a bug workaround that will tie me into using one grep-like command in future, ever. Because obviously in my case auto detection failed. --=20 David Kastrup