From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23186: 25.0.92; Tramp: Windows does not always set COMSPEC, tramp blows up in a string-match) Date: Sat, 02 Apr 2016 23:02:57 +0300 Message-ID: <83r3enrd72.fsf@gnu.org> References: <831t6nsyzy.fsf@gnu.org> <87a8lbpzbv.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459627463 3967 80.91.229.3 (2 Apr 2016 20:04:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 20:04:23 +0000 (UTC) Cc: ja2038@gmail.com, 23186@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 22:04:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1amRmD-0004tg-Jn for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 22:04:09 +0200 Original-Received: from localhost ([::1]:50813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amRmD-0000FS-17 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 16:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amRm9-0000FK-7t for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amRm6-0006EJ-0q for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:04:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amRm5-0006ED-TK for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amRm5-0001ap-Kd for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23186 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23186-submit@debbugs.gnu.org id=B23186.14596274186096 (code B ref 23186); Sat, 02 Apr 2016 20:04:01 +0000 Original-Received: (at 23186) by debbugs.gnu.org; 2 Apr 2016 20:03:38 +0000 Original-Received: from localhost ([127.0.0.1]:49157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amRli-0001aG-Fa for submit@debbugs.gnu.org; Sat, 02 Apr 2016 16:03:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amRlg-0001a3-Rl for 23186@debbugs.gnu.org; Sat, 02 Apr 2016 16:03:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amRlY-00065o-Nn for 23186@debbugs.gnu.org; Sat, 02 Apr 2016 16:03:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amRlY-00065k-Kk; Sat, 02 Apr 2016 16:03:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1665 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1amRlX-0006tz-Vl; Sat, 02 Apr 2016 16:03:28 -0400 In-reply-to: <87a8lbpzbv.fsf@gmx.de> (message from Michael Albinus on Sat, 02 Apr 2016 21:47:48 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115892 Archived-At: > From: Michael Albinus > Date: Sat, 02 Apr 2016 21:47:48 +0200 > Cc: 23186@debbugs.gnu.org > > If you are interested in changing Tramp according to your needs, pls be > cooperative. Make a proposal about a config option which could be used > instead of the COMSPEC env which doesn't exist in your environment. Make > a proposal how to avoid calling cmd.exe at all, it seems not be > mandatory, I believe. Propose something else what is possible. > > Your first proposal, trusting C:\Windows\system32\cmd.exe, hasn't been > accepted, by reasons Eli has given. And indeed, it looks too me like too > much heuristic, so I'm with Eli. I asked a question which might suggest a solution. The idea is that if we cannot trust COMSPEC, then we had better made sure what can we trust in the environment, because Emacs uses the environment variable for many other important needs, and one way of finding cmd.exe is through other environment variables. If the OP answers the question, we might be on a more constructive path.