From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jerry Asher 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, 2 Apr 2016 13:19:01 -0700 Message-ID: References: <831t6nsyzy.fsf@gnu.org> <87a8lbpzbv.fsf@gmx.de> <83r3enrd72.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11458eb4f988b8052f86351e X-Trace: ger.gmane.org 1459628420 17401 80.91.229.3 (2 Apr 2016 20:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 20:20:20 +0000 (UTC) Cc: Michael Albinus , 23186@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 22:20: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 1amS1i-0003Nl-GH for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 22:20:10 +0200 Original-Received: from localhost ([::1]:50861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amS1h-0003QZ-Qv for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 16:20:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amS1d-0003Ol-Is for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amS1a-000197-8w for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amS1a-00018v-59 for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amS1Z-0001xf-Qo for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 16:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jerry Asher Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 20:20: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.14596283687497 (code B ref 23186); Sat, 02 Apr 2016 20:20:01 +0000 Original-Received: (at 23186) by debbugs.gnu.org; 2 Apr 2016 20:19:28 +0000 Original-Received: from localhost ([127.0.0.1]:49173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amS11-0001wr-SW for submit@debbugs.gnu.org; Sat, 02 Apr 2016 16:19:28 -0400 Original-Received: from mail-vk0-f48.google.com ([209.85.213.48]:32852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amS10-0001we-Jo for 23186@debbugs.gnu.org; Sat, 02 Apr 2016 16:19:26 -0400 Original-Received: by mail-vk0-f48.google.com with SMTP id k1so139858773vkb.0 for <23186@debbugs.gnu.org>; Sat, 02 Apr 2016 13:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=S2ZFC9uMe8yNmiNFFuN6yzrfM/4Kb0ptharVYdeIx2A=; b=zbyyDHBgZz9DnZDfDfi/Ct6a4QDajPlyzjcKvBg0PNFfxOUiRuStYfugvjeloLsmZd 4upWjLddxRgJ+QYPRULpSBlsZBVDCK8szXdqHaxga7hYrjeQuOQ7ZnNhDkGWdhKTb5iP Wr0IXqHY0dm6TaRov3pRnw3nSY3CbmTbnn/O3XqWFFLUTQUeoAjpTYINEIRzz/SiaeUe rERMisK+OxtfnKwM3U9tOkb/pWqVoOp4C+5TFRFEV2qfhpgEHa7ehkwH0abhC2Jj+5wA hzWvtGzpGnnWsDAAK19r/bmKMsA7RwpLCDFv7wPzcUighXTbVv1CzhErtq6URGLrSM4T Zt4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=S2ZFC9uMe8yNmiNFFuN6yzrfM/4Kb0ptharVYdeIx2A=; b=JR6JEMCD6idASm7Mom4lqsL9OVJp1R8Z6JJglpV/jtVFQzVqJCYEJEiKRd+NwRk9zR QD/qW1MrFmuPaq5Mmq8j5O4/KUCqfRTq7o1n0lsKh1VQ0jBt8PnvBT20jLSE9Ej8Q6/o PfkLmPjXvLkR6xdmZKhlsK5E+RbMCpMgjcgBYkxF/twxuSUfJoAKSfF1kT5lpZcoKrfJ XZ79F6SMZL1Ghyy+EJwBjVGYXMYSTTGS9cFl+ujzTo3ccwfZ5DzJgIj1adtGxdnlcm3x O+OBfhW5LGmRamC7YB+ifNq9AlfYFDK6zqTniVwfC7OqPZcXr+WMd2+S7pJcPQe+YJoO ghGw== X-Gm-Message-State: AD7BkJI5U78GZRh9bcydktwUGbq/PsK6sDjGYfkDpUDXh2rhXr38jRg0OrauYz7aDN1CS7tric001dVKUoXnrA== X-Received: by 10.31.134.71 with SMTP id i68mr2907809vkd.46.1459628361220; Sat, 02 Apr 2016 13:19:21 -0700 (PDT) Original-Received: by 10.103.45.74 with HTTP; Sat, 2 Apr 2016 13:19:01 -0700 (PDT) In-Reply-To: <83r3enrd72.fsf@gnu.org> 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:115895 Archived-At: --001a11458eb4f988b8052f86351e Content-Type: text/plain; charset=UTF-8 > If the OP answers the question, we might be on a more constructive path. You asked for: > What is the full contents of the environment of the Emacs process when you run that zapped binary? My full environment contains a lot of internal information with private data with security implications + current directories + current projects + complete pathnames to various executables + firefox plugins + firefox plugin directory paths + windows directory paths + paths to ssh keys + complete specification of the windows image I am running You do not need my full environment, nor would more than a few people give it. And my full environment is not sufficient either. You need a knowledge of windows programming. I cannot supply that. If you cannot, say so. Jerry On Sat, Apr 2, 2016 at 1:02 PM, Eli Zaretskii wrote: > > 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. > --001a11458eb4f988b8052f86351e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>=C2=A0If the OP = answers the question, we might be on a more constructive
path.

You asked for:
=

>=C2=A0What = is the full contents of the environment of the Emacs process whenyou run that zapped binary?

My full environment contains a lot of internal informati= on with private data with security implications

+ current directories
= + current projects
+ comp= lete pathnames to various executables
+ firefox plugins
+ firefox plugin directory paths
+ windows directory paths
+ paths to ssh keys
+ complete specification of the windows image I am running=

You do not need my full environment, nor would more= than a few people give it.

And my full envir= onment is not sufficient either. =C2=A0You need a knowledge of windows programming.
I cannot supply that. If you cannot, say so.=

Jerry


On Sat, Apr 2, 2016 at 1:02 PM, Eli Zaretskii = <eliz@gnu.org><= /span> wrote:
> From: Michael Albinus = <michael.albinus@gmx.de>= ;
> 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 b= e
> 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 t= oo
> much heuristic, so I'm with Eli.

I asked a question which might suggest a solution.=C2=A0 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.

--001a11458eb4f988b8052f86351e--