From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#18805: 24.3; tramp adds /dev/null, breaks M-x grep Date: Sun, 09 Nov 2014 12:36:29 +0100 Message-ID: <87h9y8hagy.fsf@gmx.de> References: <87d29j6xkb.fsf@gmail.com> <87oasghc8c.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415533046 682 80.91.229.3 (9 Nov 2014 11:37:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2014 11:37:26 +0000 (UTC) Cc: 18805@debbugs.gnu.org To: trentbuck@gmail.com (Trent W. Buck) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 12:37:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XnQo2-0003rb-No for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 12:37:18 +0100 Original-Received: from localhost ([::1]:38467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQo1-0001mB-Uq for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 06:37:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQns-0001lz-U8 for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:37:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnQnn-0005HS-0J for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:37:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQnm-0005HL-TR for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnQnm-0002Hh-Hr for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Nov 2014 11:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18805 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18805-submit@debbugs.gnu.org id=B18805.14155329958724 (code B ref 18805); Sun, 09 Nov 2014 11:37:02 +0000 Original-Received: (at 18805) by debbugs.gnu.org; 9 Nov 2014 11:36:35 +0000 Original-Received: from localhost ([127.0.0.1]:54238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnQnK-0002Ge-SF for submit@debbugs.gnu.org; Sun, 09 Nov 2014 06:36:35 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:63950) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnQnH-0002GT-O5 for 18805@debbugs.gnu.org; Sun, 09 Nov 2014 06:36:32 -0500 Original-Received: from detlef.gmx.de ([87.146.43.187]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lo2EO-1YG9pe1paS-00g0y1; Sun, 09 Nov 2014 12:36:30 +0100 In-Reply-To: <87oasghc8c.fsf@gmx.de> (Michael Albinus's message of "Sun, 09 Nov 2014 11:58:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:vC2tN1WJCkdDGHMIIAu5PoJHrC9M/i5uzVrhF6ybkLWQoQbFyTq DTwCoGkMGAMz9/JhVnVfIG21y27imiIzO8Vh9wIHIIf3kijeIQolyg5TljDWacl5BvPUWhi Z6XGkun4BVlnkPwENARPD8f8kv95zI7IdPu3o8pSqrykEn313XP5JbBOvVBbZUDOfaCqb/S zbcGs2Z3JWNRY+KB2rI8g== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95766 Michael Albinus writes: >> The problem I'm having is when *in tramp* I do >> M-x grep RET git grep -nH foo >> tramp helpfully appends " /dev/null" to the command, breaking it: >> fatal: '/dev/null' is outside repository >> >> If I change it to >> M-x grep RET git grep -nH foo # >> then I get the behaviour I want. >> >> This issue *DOES NOT* occur in local directories, only over tramp. > > But this is neither a bug of Tramp nor of the grep command. The error > message "fatal: '/dev/null' is outside repository" comes from git. > > As you have said the other message, /dev/null is added due to the > setting of grep-use-null-device. This is computed according to the needs > of grep, and not of git. > > So I wouldn't regard this as an error. PS: If you use M-x compile RET git grep -nH foo there's no problem. Best regards, Michael.