From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: tramp and shell, problem on windows 7
Date: Sat, 04 Nov 2017 17:48:43 +0200 [thread overview]
Message-ID: <83k1z6t57o.fsf@gnu.org> (raw)
In-Reply-To: <874lqagj60.fsf@gmx.de> (message from Michael Albinus on Sat, 04 Nov 2017 16:25:43 +0100)
> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: help-gnu-emacs@gnu.org
> Date: Sat, 04 Nov 2017 16:25:43 +0100
>
> Eli Zaretskii <eliz@gnu.org> 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.
next prev parent reply other threads:[~2017-11-04 15:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-04 8:42 tramp and shell, problem on windows 7 Shuguang Sun
2017-11-04 13:42 ` Michael Albinus
2017-11-04 14:40 ` Eli Zaretskii
2017-11-04 15:25 ` Michael Albinus
2017-11-04 15:48 ` Eli Zaretskii [this message]
2017-11-04 15:46 ` Why are bugs discussed on this list? [was: tramp and shell ...] tomas
2017-11-04 16:13 ` Eli Zaretskii
2017-11-04 16:19 ` tomas
2017-11-05 3:08 ` tramp and shell, problem on windows 7 Shuguang Sun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83k1z6t57o.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.