all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: ja2038@gmail.com, 23186@debbugs.gnu.org
Subject: bug#23186: closed (Re: bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match)
Date: Sun, 03 Apr 2016 19:17:29 +0300	[thread overview]
Message-ID: <831t6mr7ja.fsf@gnu.org> (raw)
In-Reply-To: <87a8laoff2.fsf@gmx.de> (message from Michael Albinus on Sun, 03 Apr 2016 17:55:29 +0200)

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: ja2038@gmail.com,  23186@debbugs.gnu.org
> Date: Sun, 03 Apr 2016 17:55:29 +0200
> 
> > Can you (Michael) explain why does Tramp need this variable, and also
> > why it needs the companion tramp-encoding-command-switch?  Why not
> > just use shell-file-name and shell-command-switch?  Or, if you must
> > look deeper, why not call w32-shell-name or w32-shell-dos-semantics?
> > I think these already do what you need tramp-encoding-shell for, but
> > maybe I'm missing something.
> 
> Well, this is set this way for decades. I don't remember the datails;
> likely it was used also for other cases than just local encoding/
> decoding. And don't forget, Tramp has carried a lot of compat code, back
> to Emacs 21 and XEmacs. Maybe it was not possible to trust on `w32-shell-name'.

I figured it was something like that.

> This compat code has been removed recently. So it is applicable indeed,
> to use `w32-shell-name'. I've committed a patch to master, doing this. I
> don't know, whether the setting for `tramp-encoding-command-switch' is
> OK, 'tho.

The beauty of w32-shell-name is that you don't need to worry about the
switch: cmdproxy supports both -c and /c (and even -C and /C).  So you
can now safely use just "-c" for tramp-encoding-command-switch.

Or, if you want to be extra-cautious, and protect Tramp from people
who point shell-file-name or $SHELL at something weird, you can use
w32-shell-dos-semantics: if it returns non-nil, use /c, otherwise -c.

> As usual, I cannot test it for w32. Let's see, whether we get reports :-)

Yep.

Thanks.





  reply	other threads:[~2016-04-03 16:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02 16:06 bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match Jerry Asher
2016-04-02 16:44 ` Eli Zaretskii
2016-04-02 17:26   ` Eli Zaretskii
2016-04-02 19:37   ` Michael Albinus
2016-04-02 20:03     ` Eli Zaretskii
2016-04-02 20:21       ` Jerry Asher
2016-04-02 20:29         ` Eli Zaretskii
2016-04-03  7:05         ` Michael Albinus
     [not found] ` <handler.23186.D23186.145961804117806.notifdone@debbugs.gnu.org>
2016-04-02 17:32   ` bug#23186: closed (Re: bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match) Jerry Asher
2016-04-02 17:37     ` Jerry Asher
2016-04-02 17:50       ` Jerry Asher
2016-04-02 19:47         ` Michael Albinus
2016-04-02 20:02           ` Eli Zaretskii
2016-04-02 20:19             ` Jerry Asher
2016-04-02 20:33               ` Eli Zaretskii
2016-04-02 20:11           ` bug#23186: closed (Re: " Jerry Asher
2016-04-02 20:28             ` Eli Zaretskii
2016-04-03  7:15               ` Michael Albinus
2016-04-02 21:35             ` John Wiegley
2016-04-03 14:54           ` Eli Zaretskii
2016-04-03 15:55             ` Michael Albinus
2016-04-03 16:17               ` Eli Zaretskii [this message]
2016-04-03 16:49                 ` Michael Albinus
2016-04-03 14:51 ` bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match Eli Zaretskii

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=831t6mr7ja.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23186@debbugs.gnu.org \
    --cc=ja2038@gmail.com \
    --cc=michael.albinus@gmx.de \
    /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.