From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 23 03:44:01 2014 Received: (at submit) by debbugs.gnu.org; 23 Oct 2014 07:44:02 +0000 Received: from localhost ([127.0.0.1]:60536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhD3x-0002Wi-3F for submit@debbugs.gnu.org; Thu, 23 Oct 2014 03:44:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42103) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhD3u-0002WM-93 for submit@debbugs.gnu.org; Thu, 23 Oct 2014 03:43:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhD3g-0005ZY-1s for submit@debbugs.gnu.org; Thu, 23 Oct 2014 03:43:53 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhD3f-0005ZU-Vc for submit@debbugs.gnu.org; Thu, 23 Oct 2014 03:43:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhD3W-0008PU-Nn for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhD3N-0005Wr-Le for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:43:34 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:56035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhD3N-0005Vu-AU for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:43:25 -0400 Received: by mail-pa0-f53.google.com with SMTP id kx10so581603pab.40 for ; Thu, 23 Oct 2014 00:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=WXEJ8J7jR4yjMVCmPWxVtdmvlgn2WmxDv666cPIelN8=; b=FPrz2CcspmJghr8KN1upTBXpZCUZpr3H7U7kcMwQUCwi9YetS+hTa6hQ+dDGhv4COy +chEVA0s+nwFR6xoT6cFfqN02pNcrxh0xbw6kA9CFxXou4ijb64AqgqTJd4kzmwIvZ57 saFiH1mBWMrzMMFRR+szEu1G3/Xaxw+yHDZSjFRNcLxoM30QNTe26Rwgxr8GuzepScRV t/DruuhYapziFxe3a2oHDVv77bV7ar+TpuquhtY4ly8ucfmuWitzMbkaiPxo6DnJdy4c 88hdPLO9zgUH9Pt6Ukp+G+RJykj5z6GkhVqHq87gzPedrfjYMAHwsvTle13puOj4MrO4 zBcg== X-Received: by 10.68.213.170 with SMTP id nt10mr179260pbc.149.1414050203372; Thu, 23 Oct 2014 00:43:23 -0700 (PDT) Received: from localhost ([203.7.155.96]) by mx.google.com with ESMTPSA id i2sm917512pat.3.2014.10.23.00.43.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Oct 2014 00:43:22 -0700 (PDT) From: trentbuck@gmail.com (Trent W. Buck) To: bug-gnu-emacs@gnu.org Subject: 24.3; tramp adds /dev/null, breaks M-x grep Date: Thu, 23 Oct 2014 18:43:16 +1100 Message-ID: <87d29j6xkb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) I routinely do M-x grep, but don't always run grep itself. For example, I might type in find /usr/share/emacs/24.3/lisp/ -name \*.el.gz -exec zgrep -nH -e /dev/null {} + like I did to investigate this issue. 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. IMO it's daft of tramp to assume appending /dev/null will DTRT, since that only holds for trivial commands. If TRAMP is running each command in a sh -c '...' (IIRC it doesn't), prepending "exec ) id 1XhDPH-0003M6-FV for submit@debbugs.gnu.org; Thu, 23 Oct 2014 04:06:03 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:49059) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhDPF-0003LT-I1 for 18805@debbugs.gnu.org; Thu, 23 Oct 2014 04:06:01 -0400 Received: by mail-pd0-f172.google.com with SMTP id ft15so603356pdb.17 for <18805@debbugs.gnu.org>; Thu, 23 Oct 2014 01:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=n+8JtGzT44yahK/WD5NLJHC1cfeUJ9zkr40/EzVZUNc=; b=wdWQmtYsd0MiVtGeY3PGsVXHABggfQrGh273gHT7DirxiKbROGYUw/elI+4Vl5Cxdf 8VSa2kqfvNwpWQe+gMoh9Hbv8TD3MWfq2Eab7id8+K6grNowHsVdBfEoRYHYCLgwgohK e9YLN2D9MsFEkl22v8dHeS8/vvfgQHmm+nsxZ1ezvwwV4Lf3yLMGF4Zn1c7hKOBwd117 uPbiOhnEFyKThBKXkE+TdTG72ZBn0sappXMhDN6nUwLfL3OZyIyB8pZJnXu2Ee6gTmL6 ftHaDzxCAVFQXXmYJaH4fOpArJil9X/eZS9N20qGwNi5SKtJ0jYgccV3l7tX7la5tUcL HtWQ== X-Received: by 10.70.11.2 with SMTP id m2mr3321705pdb.31.1414051555380; Thu, 23 Oct 2014 01:05:55 -0700 (PDT) Received: from localhost ([203.7.155.96]) by mx.google.com with ESMTPSA id c2sm955696pdl.14.2014.10.23.01.05.53 for <18805@debbugs.gnu.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Oct 2014 01:05:54 -0700 (PDT) Date: Thu, 23 Oct 2014 19:05:49 +1100 From: "Trent W. Buck" To: 18805@debbugs.gnu.org Subject: Re: bug#18805: 24.3; tramp adds /dev/null, breaks M-x grep Message-ID: <20141023080547.GA30858@frey> References: <87d29j6xkb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18805 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Straight after I hit submit, spacebat of #emacs pointed out grep-use-null-device inside grep-host-defaults-alist which is populated by grep-compute-defaults in grep.el:548. =46rom my understanding of that code, it's trying grep -nH ^English /usr/share/emacs/24.3/etc/HELLO on the remote host, which fails because emacs is not installed there, though GNU grep is and grep does support -H. --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlRIttUACgkQLpef9iTtxAZmAgCdGXpFWSp/XoFJnz26WkZ6YM3c CJUAoJR8Rl0uBqWliwG4hifB28+7oh7S =rNMw -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 09 05:58:32 2014 Received: (at 18805) by debbugs.gnu.org; 9 Nov 2014 10:58:32 +0000 Received: from localhost ([127.0.0.1]:54234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnQCW-0008Q9-1K for submit@debbugs.gnu.org; Sun, 09 Nov 2014 05:58:32 -0500 Received: from mout.gmx.net ([212.227.15.19]:61737) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnQCT-0008Q0-NE for 18805@debbugs.gnu.org; Sun, 09 Nov 2014 05:58:30 -0500 Received: from detlef.gmx.de ([87.146.43.187]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LcBin-1YUDk931Vt-00jX1G; Sun, 09 Nov 2014 11:58:28 +0100 From: Michael Albinus To: trentbuck@gmail.com (Trent W. Buck) Subject: Re: bug#18805: 24.3; tramp adds /dev/null, breaks M-x grep References: <87d29j6xkb.fsf@gmail.com> Date: Sun, 09 Nov 2014 11:58:27 +0100 In-Reply-To: <87d29j6xkb.fsf@gmail.com> (Trent W. Buck's message of "Thu, 23 Oct 2014 18:43:16 +1100") Message-ID: <87oasghc8c.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:nxCxnRwaROLLhkLZ4HHf7hzvD5JCzoL7JPtYkfA3N9QkR6i2bTz BF6cPgQ7IyasaqU32CvtBh9xzRW5iW+W1FoflAf2LZXkAf4KIXcxmR19Ao2sz0v/P7kuDL5 pIXxelKdzn/rq3Mwua1wTPirEk8PhwI0/6JmsOL8fS5TEGbZe78eS+lPIC6uSZKnw9VT6Za okU7dCf0+nc1rbVxlg7yg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18805 Cc: 18805@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) trentbuck@gmail.com (Trent W. Buck) writes: > I routinely do M-x grep, but don't always run grep itself. > For example, I might type in > find /usr/share/emacs/24.3/lisp/ -name \*.el.gz -exec zgrep -nH -e /dev/null {} + > like I did to investigate this issue. > > 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. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 09 06:36:35 2014 Received: (at 18805) by debbugs.gnu.org; 9 Nov 2014 11:36:35 +0000 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 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 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 From: Michael Albinus To: trentbuck@gmail.com (Trent W. Buck) Subject: Re: bug#18805: 24.3; tramp adds /dev/null, breaks M-x grep References: <87d29j6xkb.fsf@gmail.com> <87oasghc8c.fsf@gmx.de> Date: Sun, 09 Nov 2014 12:36:29 +0100 In-Reply-To: <87oasghc8c.fsf@gmx.de> (Michael Albinus's message of "Sun, 09 Nov 2014 11:58:27 +0100") Message-ID: <87h9y8hagy.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:vC2tN1WJCkdDGHMIIAu5PoJHrC9M/i5uzVrhF6ybkLWQoQbFyTq DTwCoGkMGAMz9/JhVnVfIG21y27imiIzO8Vh9wIHIIf3kijeIQolyg5TljDWacl5BvPUWhi Z6XGkun4BVlnkPwENARPD8f8kv95zI7IdPu3o8pSqrykEn313XP5JbBOvVBbZUDOfaCqb/S zbcGs2Z3JWNRY+KB2rI8g== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18805 Cc: 18805@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 23 04:31:52 2014 Received: (at control) by debbugs.gnu.org; 23 Nov 2014 09:31:52 +0000 Received: from localhost ([127.0.0.1]:42185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsTWK-00068q-06 for submit@debbugs.gnu.org; Sun, 23 Nov 2014 04:31:52 -0500 Received: from mout.gmx.net ([212.227.17.22]:50616) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsTWH-00068g-Fq for control@debbugs.gnu.org; Sun, 23 Nov 2014 04:31:50 -0500 Received: from detlef.gmx.de ([87.146.57.61]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MMHaL-1Xr70r1Hn3-0080jR for ; Sun, 23 Nov 2014 10:31:48 +0100 Date: Sun, 23 Nov 2014 10:31:47 +0100 Message-Id: <874mtq8dq4.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #18805 X-Provags-ID: V03:K0:idfgo3bNNt31kBik3XGu8pEcLVd4gytb688ub7mIDMsPNt6tI+f BY/NByuKKY/ZgPQu/hdIrane5rknymGC+fKWBc8/7DxmULUduVFLF0LNSGqeQF23pUzaUvu lKBn+AlrwNmL9YDfjKGJui3drLlI0mId+ENJl6P42PrBL6QgdI7cEroFUx3LfJ07+S0kLCE rpYsjtbsiZGUGpgMxh/Fg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) tags 18805 notabug close 18805 From unknown Mon Aug 18 08:57:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 21 Dec 2014 12:24:04 +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