GNU bug report logs - #23186
25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match

Previous Next

Package: emacs;

Reported by: Jerry Asher <ja2038 <at> gmail.com>

Date: Sat, 2 Apr 2016 16:08:02 UTC

Severity: normal

Found in version 25.0.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #76 received at 23186 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: ja2038 <at> gmail.com, 23186 <at> debbugs.gnu.org
Subject: Re: 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 18:49:45 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Eli,

> 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.

I check (boundp 'w32-shell-name). This looks safe. If somebody uses
weird settings, she will loose.

> Thanks.




This bug report was last modified 9 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.