From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Date: Fri, 22 Mar 2019 14:17:25 +0800 Message-ID: <41148.0504948244$1553236696@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="86843"; mail-complaints-to="usenet@blaine.gmane.org" To: 34943@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 22 07:38:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Dog-000MRw-GC for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Mar 2019 07:38:10 +0100 Original-Received: from localhost ([127.0.0.1]:52648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7Dof-0006XX-EH for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Mar 2019 02:38:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7Dlj-0004SD-CM for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7Dlh-00024f-Ih for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:35:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7Dlf-000223-Rw for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:35:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7Dlf-0004h5-Lo for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 06:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34943 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155323648818016 (code B ref -1); Fri, 22 Mar 2019 06:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 06:34:48 +0000 Original-Received: from localhost ([127.0.0.1]:53938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7DlP-0004gW-LO for submit@debbugs.gnu.org; Fri, 22 Mar 2019 02:34:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7DlM-0004gG-Ez for submit@debbugs.gnu.org; Fri, 22 Mar 2019 02:34:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34866) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7DlG-0001WD-OT for submit@debbugs.gnu.org; Fri, 22 Mar 2019 02:34:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7DlF-00045K-BN for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:34:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7DUr-0002dR-3B for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:17:42 -0400 Original-Received: from smtpbg298.qq.com ([184.105.67.102]:46547) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7DUo-0002aQ-Iu for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 02:17:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1553235452; bh=UyXjBPGs+dZK5zQvvbWwfSVNsec/oRrOYAApHFlIlUI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NBdfBSC9zDPrD+d2MSqfCsijFlZUPBVm20zo2jcJERaPVBXyeBOWrX5rfWgnHqPSH Exjzql5xLbjrB5Iy9CBJWXLE4vmt/lj08BlYuPpvgd26j4j9+f47gROa1ObGN0LZIU 2JU3UEyNypMQXrsZafLfPBIC+Ruvd/af65rDGo6g= X-QQ-mid: esmtp3t1553235448tw5pgao8w Original-Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Fri, 22 Mar 2019 14:17:27 +0800 (CST) X-QQ-SSF: 01000000000000F0F4200F00000000G X-QQ-FEAT: QX/rXDl9P1uwwW9arT9OEBDP8WRNVenN8DIGV29kTuq+PnaoSLV9bFHRLfmUQ 0IEkRWum2ZWrnd3UfLtXWbJrdmeL+g0EgZrii2fv0erp3MfD9Md0d8IWh1f7GzCMoqg9R0n Qag2GbmRulAr+iZnXQBB9oAWN29ptAbxVMw0O4jq3Qb0QKe6cqeS018ymwoOqkFdHwJoVv7 hyITueV6B0b4SMpWopbzYYjNs+yVA3ebr01OBqbPWixsVJIm6jX15S/RcEfOJGMwKH+oLUb EvVjcTEmVUPfpCVMNdrJOHsoRm90TBEY2xDw== X-QQ-GoodBg: 0 X-QQ-SENDSIZE: 520 X-QQ-FName: D252FCB98E954D3683C5E57511FFE463 X-QQ-LocalIP: 10.208.130.95 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:156599 Archived-At: Hi, The recent change to Tramp for shell/explict shell has break the remote shell again. For example: - Tramp to a host - in a remote diretory, M-x shell it raise the error message: env path/to/cmdproxy.exe can't be found which looks tramp shell invoke the local shell, instead the remote shell I have the settings: ``` (connection-local-set-profile-variables 'remote-bash '((explicit-shell-file-name . "/bin/bash") (explicit-bash-args . ("-i")) )) (connection-local-set-profiles '(:application tramp :protocol "plink" :user "user" :machine "host.com") 'remote-bash) ``` In the previous version of tramp (about Feb), it will invoke the explicit-shell-file-name, instead of local cmdproxy. Another issue, the emacs treat explicit-shell-file-name and explicit-bash-args as non-safe local variables and ask how to deal it (Y/N/! ...). In the previous version of tramp (about Feb), it takes these two variables as safe which I think is reasonable because user sets it in tramp-way explicitely and it is only used in tramp only. In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32) of 2019-03-21 built on RSHMX11052 Repository revision: c569cceb2d334564d320d2b4098c855db7eb88a0 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.15063 System Description: Microsoft Windows 10 Enterprise (v10.0.1703.15063.1631) Recent messages: Wrote c:/Users/user/HOME/.emacs [2 times] Tramp: Opening connection for user@host.com using plink...done Opening directory /plink:user@host.com:/opt/bee/home_NEW/user/...done Tramp: Opening connection for user@host.com using plink... Tramp: Sending command `plink -l user -ssh -t host.com " env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$ ' /bin/sh " && exit || exit' Tramp: Waiting for prompts from remote shell... Tramp: Sending password Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `host.com' Tramp: Opening connection for user@host.com using plink...done Configured using: 'configure --without-imagemagick --without-pop '--program-transform-name=s/^ctags$/ctags.emacs/'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: CHS locale-coding-system: cp936