From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: tramp and shell, problem on windows 7 Date: Sat, 04 Nov 2017 17:48:43 +0200 Message-ID: <83k1z6t57o.fsf@gnu.org> References: <87lgjmgny3.fsf@gmx.de> <83lgjmt8d3.fsf@gnu.org> <874lqagj60.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1509810562 14342 195.159.176.226 (4 Nov 2017 15:49:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2017 15:49:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 04 16:49:19 2017 Return-path: Envelope-to: geh-help-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 1eB0h6-00034o-VU for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 16:49:13 +0100 Original-Received: from localhost ([::1]:41372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB0hE-0000Dh-Gb for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 11:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB0gl-0000DV-6k for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 11:48:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB0gg-0008Go-Os for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 11:48:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB0gg-0008Gc-L8 for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 11:48:46 -0400 Original-Received: from [176.228.60.248] (port=4270 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eB0gf-0002Jz-Le for help-gnu-emacs@gnu.org; Sat, 04 Nov 2017 11:48:46 -0400 In-reply-to: <874lqagj60.fsf@gmx.de> (message from Michael Albinus on Sat, 04 Nov 2017 16:25:43 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114741 Archived-At: > From: Michael Albinus > Cc: help-gnu-emacs@gnu.org > Date: Sat, 04 Nov 2017 16:25:43 +0100 > > Eli Zaretskii writes: > > > And second, I don't recommend users to set explicit-shell-file-name, > > as that makes Emacs use a shell that might be different from the one > > used by the system. Users who do this should know very well what they > > are doing, because it could get them in trouble. > > Hmm. The documentation recommends its use, see > (info "(emacs) Interactive Shell") That recommendation is for "M-x shell", not for shell-command and its Dired derivatives. For "M-x shell", the recommendation makes sense, because the user should have control on what shell is run in interactive sessions. But shell-command is an entirely different matter. > And the Tramp manual explains how to set it differently for every remote > host, see (info "(tramp) Remote processes") > > What else do you recommend on remote systems? explicit-shell-file-name is not for remote systems. I was only talking about setting this for shell-commands executed locally. > > I think the first question here is why do we see cmdproxy there. On > > Windows, shell-file-name is set to cmdproxy, but why does Tramp use > > that value? > > I could try to dig, if I get traces produced by (setq tramp-verbose 6) > But this tells only the Tramp part of the story. I suspect, we are faced > with settings outside Tramp. You may be right.