From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#32093: 27.0.50; M-x grep appends /dev/null to command line Date: Sun, 08 Jul 2018 08:19:47 -0400 Message-ID: <87va9pdin0.fsf@gmail.com> References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531052295 28825 195.159.176.226 (8 Jul 2018 12:18:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2018 12:18:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 32093@debbugs.gnu.org, Michael Albinus To: David Kastrup Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 14:18:11 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 1fc8dk-0007Kc-GT for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2018 14:18:08 +0200 Original-Received: from localhost ([::1]:36907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc8fr-0001KQ-Ga for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2018 08:20:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc8fe-0001Fv-8I for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 08:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc8fa-0005xS-9t for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 08:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fc8fa-0005wn-5R for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 08:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fc8fZ-0004nO-P6 for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 08:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jul 2018 12:20:01 +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.153105239618419 (code B ref 32093); Sun, 08 Jul 2018 12:20:01 +0000 Original-Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 12:19:56 +0000 Original-Received: from localhost ([127.0.0.1]:50712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc8fU-0004n1-Aj for submit@debbugs.gnu.org; Sun, 08 Jul 2018 08:19:56 -0400 Original-Received: from mail-it0-f66.google.com ([209.85.214.66]:53444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc8fS-0004mn-VC for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 08:19:55 -0400 Original-Received: by mail-it0-f66.google.com with SMTP id a195-v6so21939846itd.3 for <32093@debbugs.gnu.org>; Sun, 08 Jul 2018 05:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PAsNG03QEQLEMRE+f973uFxLG87M+JAhr7Go+Clx+Uo=; b=lcvLOCk7WvMXE4NI0pzBKOerukFklClaM5m8aEcqNsr2xD0x6UTRgvo88kWA2qYqk7 ji/D02uJk/ZTESkFm4HxndB62tKfP+idsZyTuNY3p/cHnpU8Z60BCydeOYYBTtsGzU9j y09MgVvjAbib7Wko7w9eWY+MZBtWtHHU7qdae163fHGPR+7obj5/0JyybtKHKG1jBcuW jGi5Y/I8qGtl6fA/SXLI7EUgdZU+4pyD8V3YBF2ziXuUNvvj9dKPg42snbBGFS+VP060 kRWriGpVErRNlj6yyMz4UKwv26qu+GQc6Br7NvCXwW9wSwAkAOHkI8895O1qE4qVcCY5 n5Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PAsNG03QEQLEMRE+f973uFxLG87M+JAhr7Go+Clx+Uo=; b=ZXT8pA8d2emaSSupQsJxpOoxA0dmLM8XISAc/sWkUV9ckhl2vNi+liRAB02JZXSOTU OinT/7ZrEASnG4ZwUFV4jlW0dRJa4Du4hNJVHfWGCu/sec8mzv8jkHd7cSc/p7pD+afy 2s4W0JrdRVg3fiNTHNIBnFoMKLEDgWWi0ZMDSZTNKsAWQc0p5GhoVAfXrWrfm4zHO1jN ic0i3AKMbU01nDkxTidRkKP2I1dLqwDW3nbT62t0Vg07MJ2C6Rkg4oNBYv7KPZxPCim6 wpkI3wdi6q+8jfmxQzRxMVH3W6zV2FwRDA+9c22wk/69ENql4qUC3mgJOq+KwO0bSVqn LgqQ== X-Gm-Message-State: APt69E2fdQcGL0bKCAEOMNC3A2CntsNLnckMeYpnQUTVn3rXfXx2tKaz sNG0TEQKU1iIclnHM+aTA4mprA== X-Google-Smtp-Source: AAOMgpdxZ9pxxU7bLiiVa3rxWep0xF3c+dabQbViIi2mfCTU0I5QXpSijQLJYCWslEjEmsvuq9lwKA== X-Received: by 2002:a02:4c16:: with SMTP id a22-v6mr13323549jab.48.1531052389291; Sun, 08 Jul 2018 05:19:49 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id v190-v6sm5784672itc.30.2018.07.08.05.19.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Jul 2018 05:19:48 -0700 (PDT) In-Reply-To: <87d0vydli6.fsf@fencepost.gnu.org> (David Kastrup's message of "Sun, 08 Jul 2018 13:17:53 +0200") 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:148337 Archived-At: David Kastrup writes: > This code actually is considerably old, older than what I remember > having worked (though it's sort of hard to tell since the results of > autodetection are stored in a session). So I consider it more likely > that the more recent > > 644cdd1aa0a (Noam Postavsky 2016-09-13 646) (when (eq grep-use-null-filename-separator 'auto-detect) > is involved here. At any rate, the principal problem here is that "git > grep" is a grep-like command that will usually refuse to work on > out-of-tree files (unless --no-index option is given). So the results > from any of the autodetection, based on searching the HELLO file, are > sort-of random. The reason for the current breakage is actually the changes to the HELLO file, the string "English" is no longer at the beginning of the line since [1: 3589c966b7]. The reason the auto detection previously worked, despite HELLO not being in the current git repository, is that the autodetection works with plain "grep", not "git grep". Autodetection happens before you get the prompt, so you haven't even typed in "git" yet. [1: 3589c966b7]: 2018-05-19 18:17:38 +0300 Use Enriched mode in etc/HELLO to keep charset information https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3589c966b743850c29b89b83710783d4ea026770