From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable 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-GNU-PR-Keywords: To: 34943@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155323648818016 (code B ref -1); Fri, 22 Mar 2019 06:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 06:34:48 +0000 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,INVALID_MSGID,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 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 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 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 From: Shuguang Sun Date: Fri, 22 Mar 2019 14:17:25 +0800 Message-ID: +24200EB93EE685D5 MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 184.105.67.102 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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.e [...] Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=shuguang79%40qq.com; ip=209.51.188.92; r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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.e [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=shuguang79%40qq.com;ip=209.51.188.92;r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 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 From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 07:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Shuguang Sun Cc: 34943@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155323989122991 (code B ref -1); Fri, 22 Mar 2019 07:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 07:31:31 +0000 Received: from localhost ([127.0.0.1]:53949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7EeJ-0005yk-KT for submit@debbugs.gnu.org; Fri, 22 Mar 2019 03:31:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7EeG-0005yW-LL for submit@debbugs.gnu.org; Fri, 22 Mar 2019 03:31:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:50677) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7Ee7-0007jQ-SR for submit@debbugs.gnu.org; Fri, 22 Mar 2019 03:31:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7Ee6-0005wC-Lp for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 03:31:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_20, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,INVALID_MSGID,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7EPu-0003Vw-Hu for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 03:16:40 -0400 Received: from smtpbgbr2.qq.com ([54.207.22.56]:41844) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7EPp-0003M2-GA for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 03:16:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1553238976; bh=ddE4fJS6GWEuFprKSrcr5/HvtYMnV+QEfmtjkK1Hhhw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; b=wU1Kd1TOrSMP9l9jxBiPK2y2btXuElRSWkW/+h2IyhUN7HDZVFCD4dySfCn3/y6tL oUGrG/k/SMzYwp6BNq15U2gwYxlVu9U7qFuEjchzjAUnsqtXvY7iRCNch3m0mZeIDa rs1m3UKG/jofjqarFjpb/Brsx1Jqq5ODOSs5JHNA= X-QQ-mid: esmtp4t1553238974tvrpp4r71 Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Fri, 22 Mar 2019 15:16:14 +0800 (CST) X-QQ-SSF: C1000000000000F0F4200F00000000G X-QQ-FEAT: 92FxZ2TPvndOrqDkldS4/ty2G7QGvCqhPUC/KJ3XN5muec4svgKx3CDuHDyqn yBm75IP+xTDIUSc/lTeBE7OzCape8FU+7nIjqMC/9fxwBXKXXQXaOANOXrgIT09+ei9I3/U Hgn7Qs9Q72XKNsz1oCtLz53noqMtchUoIN03BFgHc+iVeT8Ep9qlHaSYxjY57HRrTCStVcg e2rSznYnm+0R8UigfvQ6ddzB25kjUdoCmw0r3rmj7qQtYj1dOMchLOPBP657Ao3j4+o7pST CplMS/kzZanUhPcbR/WxRByWbIGaq2XhcRnA== X-QQ-GoodBg: 0 From: Shuguang Sun References: <41148.0504948244$1553236696@news.gmane.org> Date: Fri, 22 Mar 2019 15:16:13 +0800 In-Reply-To: <41148.0504948244$1553236696@news.gmane.org> (Shuguang Sun's message of "Fri, 22 Mar 2019 14:17:25 +0800") Message-ID: +5DB6F4BFE5F1ADF7 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign4 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 54.207.22.56 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 4.4 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I see that according to the 49.2.6 Per-Connection Local Variables, it use shell-file-name now. Sorry to disturbance. -- Best Regards Shuguang Sun Content analysis details: (4.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=shuguang79%40qq.com; ip=209.51.188.92; r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 1.4 TO_EQ_FM_SPF_FAIL To == From and external SPF failed 0.6 TO_EQ_FM_DOM_SPF_FAIL To domain == From domain and external SPF failed X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.4 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I see that according to the 49.2.6 Per-Connection Local Variables, it use shell-file-name now. Sorry to disturbance. -- Best Regards Shuguang Sun Content analysis details: (3.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=shuguang79%40qq.com;ip=209.51.188.92;r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 1.4 TO_EQ_FM_SPF_FAIL To == From and external SPF failed 0.6 TO_EQ_FM_DOM_SPF_FAIL To domain == From domain and external SPF failed I see that according to the 49.2.6 Per-Connection Local Variables, it use shell-file-name now. Sorry to disturbance. -- Best Regards Shuguang Sun From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Shuguang Sun Cc: 34943@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155324146325302 (code B ref -1); Fri, 22 Mar 2019 07:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 07:57:43 +0000 Received: from localhost ([127.0.0.1]:53954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7F3e-0006a1-R2 for submit@debbugs.gnu.org; Fri, 22 Mar 2019 03:57:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7F3d-0006Zp-Gu for submit@debbugs.gnu.org; Fri, 22 Mar 2019 03:57:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:49682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7F3X-0006Cr-Pz for submit@debbugs.gnu.org; Fri, 22 Mar 2019 03:57:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7F3W-0000FV-Pt for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 03:57:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_20, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,INVALID_MSGID,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7F3V-0006B9-SR for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 03:57:34 -0400 Received: from smtpbgsg2.qq.com ([54.254.200.128]:53892) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7F3T-00066C-K0 for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 03:57:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1553241418; bh=gCEV2CcWQ+0ak6YT+2L8bmErYax6Wbeyob0F91exf5A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; b=iJ5keEcGiEMeTpRDbBba89MbZnBrwJY7BdglckkXK/A9+lkA8fmIU+P+9rn8h9r7x WxpEkah8gsTG3Wet87eWjgs7MWbjocuWcDkyx3/uBqp6yAlpxoyku/tC00GUCt1TNE ItOKOcPCpxIFpT08essA+dBSnzO2yw6GsyvV34x4= X-QQ-mid: esmtp4t1553241417tzm97gzm5 Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Fri, 22 Mar 2019 15:56:56 +0800 (CST) X-QQ-SSF: C1000000000000F0F4200F00000000G X-QQ-FEAT: bJ1b448qMRvB0+PhojBUYawlXrTf3s7KEHwYxRDWbNmpqMQ9fDKV0JyWHbXTl b/Akkv9ZW/ftucelOlLFoNgTZ8TVMRocIrypJnDHCwDk4Yx7K0fdP3S7BOeT3avN5lp+/sT VpS0ZgdOeRsKQdEEYTmehnrFw7qzwtKvjc/8ipMfWFu3zYJFiLX1JRddU6j/Bfzb9M/nVac yiNZeeqDRN1fUouNvcRWs5XKVnTzg4rJaH29nge6iXFf7SN/ftZ7sjWF2IA3ioIQWw2JMSw UTKWMvhnmuHrNgT6D+irPHxKsCRXyhwHhNkaHyMJ7/veR/ X-QQ-GoodBg: 0 From: Shuguang Sun References: <41148.0504948244$1553236696@news.gmane.org> <31262.7570166782$1553240177@news.gmane.org> Date: Fri, 22 Mar 2019 15:56:55 +0800 In-Reply-To: <31262.7570166782$1553240177@news.gmane.org> (Shuguang Sun's message of "Fri, 22 Mar 2019 15:16:13 +0800") Message-ID: +755C98C4862C2A5C User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 54.254.200.128 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 4.4 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Shuguang Sun writes: > I see that according to the 49.2.6 Per-Connection Local Variables, it use shell-file-name now. 1. shell-file-name to "/bin/bash" defaultly not safey local variables, and it pops to (Y/N/!) buffer ``` (connection-local-set-profile-variables 'remote-bash '((shell-file-name . "/bin/bash") (shell-c [...] Content analysis details: (4.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=shuguang79%40qq.com; ip=209.51.188.92; r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 1.4 TO_EQ_FM_SPF_FAIL To == From and external SPF failed 0.6 TO_EQ_FM_DOM_SPF_FAIL To domain == From domain and external SPF failed X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.4 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Shuguang Sun writes: > I see that according to the 49.2.6 Per-Connection Local Variables, it use shell-file-name now. 1. shell-file-name to "/bin/bash" defaultly not safey local variables, and it pops to (Y/N/!) buffer ``` (connection-local-set-profile-variables 'remote-bash '((shell-file-name . "/bin/bash") (shell-c [...] Content analysis details: (3.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=shuguang79%40qq.com;ip=209.51.188.92;r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 1.4 TO_EQ_FM_SPF_FAIL To == From and external SPF failed 0.6 TO_EQ_FM_DOM_SPF_FAIL To domain == From domain and external SPF failed Shuguang Sun writes: > I see that according to the 49.2.6 Per-Connection Local Variables, it use shell-file-name now. 1. shell-file-name to "/bin/bash" defaultly not safey local variables, and it pops to (Y/N/!) buffer ``` (connection-local-set-profile-variables 'remote-bash '((shell-file-name . "/bin/bash") (shell-command-switch . "-c"))) ``` 2. In this setting, M-x shell whill ask the path to the shell like: /plink:username@host.com:/opt/home/username//bin/bash Even I change to (shell-file-name . "/usr/bin/bash"), it is the same. Bothe /bin/bash and /usr/bin/bash exist. -- Best Regards Shuguang Sun From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 14:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Shuguang Sun Cc: 34943@debbugs.gnu.org Received: via spool by 34943-submit@debbugs.gnu.org id=B34943.155326401920532 (code B ref 34943); Fri, 22 Mar 2019 14:14:02 +0000 Received: (at 34943) by debbugs.gnu.org; 22 Mar 2019 14:13:39 +0000 Received: from localhost ([127.0.0.1]:54566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7KvS-0005L6-KO for submit@debbugs.gnu.org; Fri, 22 Mar 2019 10:13:38 -0400 Received: from mout.gmx.net ([212.227.15.15]:53519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7KvN-0005Kr-St for 34943@debbugs.gnu.org; Fri, 22 Mar 2019 10:13:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553263997; bh=KRrzPGs5oj2w+mi7+of/vG0FIC22A+9VO+XvOPCUQpI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=WrjFBESrcbCRcZkp2OGFq1GxFXLJHFxnPqDrDQtffUfxVoYmqvBpiKI5Q5tB71Ru2 NESbrDMj2Si5A1Lf/Kfg7GGh9FLKf0fLMpJDRgRxyrMHhhx40Nxm1kz4PxI3/9otSU xGwKLvip6WNNklQxcTWziocE0q/qQi/k08avMeIo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.60.108]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M4nt7-1gmVfs1k4r-00z06O; Fri, 22 Mar 2019 15:13:17 +0100 From: Michael Albinus References: <41148.0504948244$1553236696@news.gmane.org> Date: Fri, 22 Mar 2019 15:13:16 +0100 In-Reply-To: <41148.0504948244$1553236696@news.gmane.org> (Shuguang Sun's message of "Fri, 22 Mar 2019 14:17:25 +0800") Message-ID: <87tvfvatfn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:NK3Z90teZ7Ti8lyCCirwxCeWGnYi2oiv0G9oRzpO3PklHo3Pyvo Y7umYwQZ848hYNKk9BDsVW8kFEtd7r4l0DfjTvDQoJL5Y8fvte+ua6dHDkgLKOSXcH7joya 5eL9FTjKxMXAQYRZco2FgrVEaovAnZTZ+StGpHjWXV1oK3DF4rvpdZe5eMCv4MmYj79L8NZ ARoUeKpaT0WGvoDZAoVJg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:84dgQ6+xul4=:EoCA1+fE+qoN3cxBkKTcE6 dyWwEm2fzCXNE5MIYywGnrTYH+Qf4JG+lm3kVF9WUubuRWhmiokgBPeIDZIfn5lz+fB1MSSDV QPiSRj8Lbn0tgaWtV7+01GnZqNvAxjt273d46drKassoUfXRAMHhUh7+EJabv58y9g2xZfcDB 84hzuouePuWIVYqsl+pJoOApe34dPmeeSkNyANLLVlIWUbL0ZqQBUfZnsieMb1QSTG3mTtLNB yVBqLkoT6QdXrCSIFeFGIMdEEwrgYHI+j5PJu/QhL4yAm3cbmh9BZVkmlfBL5AwZFQ9Derbd1 +dh5ZCCoLSwlajJ1MxYCpHX5oTx3dMtCahTQSR6r6oojlD+cMlEv7VxHru3uicgPeOl0Al6hF 4GQ7VsIaWXWfYHIHPtNIintspb9kpSu/jxp7o+2B5TyNCYnAS5OuvFTMtZaFdWnbkRgYXEoX/ X1gQzNX3Ll5kdRKQOd7CF/6ja78YpL7vN/q3DlxkkPdOCe/vGcH60K78/pNbPgjrk/ae/y88i vCWePUr/egVxUKOHB5ypMR+MQbCICPULtY4bRgKHK6pMvs6y/F4UTICKUUc6yUeJEDflAhGQQ k4Uc8DjxtpIWTfdG5/1GRIa3w1/X7SLoBmZ4x3Rc4T3UsqnGBSbVdgYWpXvSy1ye2jt6ifM7F SJ4NqCZzAHmIu44eE9kl7064mRmcgP1hzCkj+D9RY7belpLgaQ03noLGSf6io45yisN1JsswI gLRhWL2Bw8ervD/RlQAbdlzVLiVw4RsYxemA0UL8Ae1zjnOb6HpDHLzxXq1g77AMVyYl/3mhV 3gHPYlsULfyxPL27yinI5omtBNHFBOm7q+sQn/FtKJLQcFdoj+vGt4oBYuC88MDvUKHceG4eq UZiqKSulyipRN8JYut+XKdWla6nVAdyHOzEYaio+W25m2yULF3GuQEE2yjj79b X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Shuguang Sun writes: > 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 she= ll > > 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.co= m") > 'remote-bash) > ``` > In the previous version of tramp (about Feb), it will invoke the explici= t-shell-file-name, instead of local cmdproxy. If `explicit-shell-file-name' is given, it must have precedence. What about the following patch to master: --=-=-= Content-Type: text/x-diff Content-Disposition: inline Content-Transfer-Encoding: quoted-printable *** /tmp/ediffWyfTux 2019-03-22 15:09:52.065151959 +0100 =2D-- /home/albinus/src/emacs/lisp/shell.el 2019-03-22 15:09:35.080867417 = +0100 *************** *** 721,729 **** (current-buffer))) (with-current-buffer buffer ! (when (file-remote-p default-directory) ! ;; On remote hosts, the local `shell-file-name' might be useless. ! (with-connection-local-variables (if (and (called-interactively-p 'any) (null explicit-shell-file-name) (null (getenv "ESHELL"))) =2D-- 721,729 ---- (current-buffer))) (with-current-buffer buffer ! (with-connection-local-variables ! ;; On remote hosts, the local `shell-file-name' might be useless. ! (when (file-remote-p default-directory) (if (and (called-interactively-p 'any) (null explicit-shell-file-name) (null (getenv "ESHELL"))) *************** *** 732,757 **** (expand-file-name (read-file-name "Remote shell path: " default-directory shell-file-na= me ! t shell-file-name)))))))) ! ;; The buffer's window must be correctly set when we call comint ! ;; (so that comint sets the COLUMNS env var properly). ! (pop-to-buffer buffer) ! ;; Rain or shine, BUFFER must be current by now. ! (unless (comint-check-proc buffer) ! (let* ((prog (or explicit-shell-file-name ! (getenv "ESHELL") shell-file-name)) ! (name (file-name-nondirectory prog)) ! (startfile (concat "~/.emacs_" name)) ! (xargs-name (intern-soft (concat "explicit-" name "-args")))) ! (unless (file-exists-p startfile) ! (setq startfile (concat user-emacs-directory "init_" name ".sh")= )) ! (apply #'make-comint-in-buffer "shell" buffer prog ! (if (file-exists-p startfile) startfile) ! (if (and xargs-name (boundp xargs-name)) ! (symbol-value xargs-name) ! '("-i"))) ! (shell-mode))) buffer) ;;; Directory tracking =2D-- 732,757 ---- (expand-file-name (read-file-name "Remote shell path: " default-directory shell-file-na= me ! t shell-file-name)))))) ! ;; The buffer's window must be correctly set when we call comint ! ;; (so that comint sets the COLUMNS env var properly). ! (pop-to-buffer buffer) ! ;; Rain or shine, BUFFER must be current by now. ! (unless (comint-check-proc buffer) ! (let* ((prog (or explicit-shell-file-name ! (getenv "ESHELL") shell-file-name)) ! (name (file-name-nondirectory prog)) ! (startfile (concat "~/.emacs_" name)) ! (xargs-name (intern-soft (concat "explicit-" name "-args")= ))) ! (unless (file-exists-p startfile) ! (setq startfile (concat user-emacs-directory "init_" name ".s= h"))) ! (apply #'make-comint-in-buffer "shell" buffer prog ! (if (file-exists-p startfile) startfile) ! (if (and xargs-name (boundp xargs-name)) ! (symbol-value xargs-name) ! '("-i"))) ! (shell-mode))))) buffer) ;;; Directory tracking --=-=-= Content-Type: text/plain > 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. I'll check when the first problem is solved. Best regards, Michael. --=-=-=-- From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 14:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Shuguang Sun Cc: 34943@debbugs.gnu.org Received: via spool by 34943-submit@debbugs.gnu.org id=B34943.155326411820720 (code B ref 34943); Fri, 22 Mar 2019 14:16:01 +0000 Received: (at 34943) by debbugs.gnu.org; 22 Mar 2019 14:15:18 +0000 Received: from localhost ([127.0.0.1]:54570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Kx4-0005O7-5Z for submit@debbugs.gnu.org; Fri, 22 Mar 2019 10:15:18 -0400 Received: from mout.gmx.net ([212.227.15.18]:44477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Kwz-0005No-Cp for 34943@debbugs.gnu.org; Fri, 22 Mar 2019 10:15:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553264096; bh=b9t27JaSS+KjOSIjsPt3zbje1twayREMEiUhfeTJucA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=YBjL6pUkyrvY3//g53wOUaOblPhGDzKmieFFr5isPPCEyvCAsT5n+4neW9kQ6yOlJ oVd1cQi7lzwjqSYkqxIUhH5OrI4iRSWRZvR0mFGxNOyriDhnx72g7NW95pAbd/Cl3c xota3O2xLFy8d2TpolXMub8GyUYnEMIl2dNd4TLg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.60.108]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M92ZJ-1hHSlO2uI1-00CPL2; Fri, 22 Mar 2019 15:14:56 +0100 From: Michael Albinus References: <41148.0504948244$1553236696@news.gmane.org> <31262.7570166782$1553240177@news.gmane.org> Date: Fri, 22 Mar 2019 15:14:47 +0100 In-Reply-To: <31262.7570166782$1553240177@news.gmane.org> (Shuguang Sun's message of "Fri, 22 Mar 2019 15:16:13 +0800") Message-ID: <87pnqjatd4.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:GdXNBY+XDXujnpwqkwIKYRH/RRNNFVGUvvkzFJvlJ50triTtMed TJrslhRyKACdW3yp1y1gEFF98DO/qeN/TC/0xHArpCO99/9GvA7Fj/oLmV9YfOr8/+n3Er1 HOkU4Bt2njayYVO0Is8kGPYeAyCCZBVuCszCnVunmYtV/7dfyO/1Djmh3a/Ip4CMY0hDoHZ p0PJVcWYAdsPe62JSqJlQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:09EDQ4eOOPk=:qMRTalY+6j2gAzDxyA7cQJ nux5BnSNwpIrtzthNOX4Ddl6AYHwduQfGP/INSp6p6bkaD1HPD0Gg1C9o9gzJQwTgdr8ZmpX9 /UhmHbsb3K0IbuPsgWHeLVjM0pO8OnsyN+rbL7R/3i789+suIhPL58Ou/TXs35UzB1j6K0ZYO 8HHFs9T2oK+5EC8x8mutMrOlO1CtWOsq3pQ904f1l80TUpvbF/NeIRssBEpQusqNuyr1Aq7xR trNHcKhSL0ergfauBzrE3ftP/AZsPTm+J5w5TeA0nEauKmkT1ixAwo//ObuTYqreEIFUTW3e7 z3gD8ELXZ1reKNa1Cuo9iAXbBTzAVRnZgjTgBwtRjwLYBTc1YMWrUxedo6XugcczaG7bRqxyp Y1AQ3XeHTr6ZSG/t8hNGvApZGRsrcI/oMEd02FujdkWE5NytiXo/2klwfFydp5uL0ZSi4Afxw 8F5SBCq6MOSo5vv5zOUQoKfYEZvt3p6/+0MUdCxZ4gXJJcigA3XIxC8zdqi6f/EJ6ZBY0H9Zn yhxt5sQ4nycX+pOhzemp7yg62JqeDE2JMPSy/qPrYQhQLOqkg/iG8hjiKd6SsOmBBGQp5tOmp GFOyBkUA3z+heN/+l8y2SdjmNI21hvhzO8UwQdm/S5mCHxuyUKn37ernTi9b+bHG8WgyrxXuX IakEsvm1ZqVJbugoT3Hzf4U9OZaAG1C7Q8urFm56a7JM4Bh7/czKJ/511XjIex9XAV6jHJFVw 9ZM3fgShhlewhTQhJQ17SmH82SYoo8vaDnqq0SjmuKEXOAnHHWetICpYlAmAC32qPw6PTWqf7 XniTdqGnTU7QFA4WDC690VZUsVd2wST61DthZ/4N1MTYUKYX74yjmaLYg/pvxc4PlNcmI4CnX R+ls8/6pBo1HuADmeitkDEo2bYTXWhkXwywjNETwbI6I5ujMg+bspolpjSfv3PP5qlnUm8ISX 3TjIjW9Nt2Q== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Shuguang Sun writes: Hi, > I see that according to the 49.2.6 Per-Connection Local Variables, it > use shell-file-name now. This manual section explains how to set shell-file-name. But explicit-shell-file-name shall still work as it happens until recently. > Sorry to disturbance. Best regards, Michael. From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; References: +24200EB93EE685D5 In-Reply-To: +24200EB93EE685D5 Resent-From: Chris Zheng Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34943@debbugs.gnu.org Cc: Michael Albinus Received: via spool by 34943-submit@debbugs.gnu.org id=B34943.155326738225636 (code B ref 34943); Fri, 22 Mar 2019 15:10:02 +0000 Received: (at 34943) by debbugs.gnu.org; 22 Mar 2019 15:09:42 +0000 Received: from localhost ([127.0.0.1]:54589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Lni-0006fQ-1f for submit@debbugs.gnu.org; Fri, 22 Mar 2019 11:09:42 -0400 Received: from mail-it1-f170.google.com ([209.85.166.170]:38624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Lng-0006fE-P7 for 34943@debbugs.gnu.org; Fri, 22 Mar 2019 11:09:41 -0400 Received: by mail-it1-f170.google.com with SMTP id m18so3763276ita.3 for <34943@debbugs.gnu.org>; Fri, 22 Mar 2019 08:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=iUX78P7Ac7CEhVr2pSF+gb/1+sY87xZ52BRqnIElHIc=; b=jhbeKr22znoH9N9L4ZhsrTJk2XAdDsl/PaURrBcgN3nPVQ1heOGDfF1VlwjOk6Teq2 9yrvHLcXNRKZ1rTavA7SDUB2fR9H26YhdJEgpQH0cZWB0cBvh/YoSxiLSkAcDep/zD68 4rVYGw2diZ+YUlnhCcutXZbaDfPmlyDDH5kebL/ADlyH45vofHyHunX5RX2YPFH6XQjB KN60VX1KYoMHc2x+1rIyRMH/drackMt1mvgcqhSOX+X/Ayv2CGI3X4bb1REkr+uffMn1 OI2iFxneIc3aflcDnuAQmMr645o21bfFPnLR75yR2DHdtba+CrSjSukzOt7beR+GgFEH ZV0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=iUX78P7Ac7CEhVr2pSF+gb/1+sY87xZ52BRqnIElHIc=; b=W4/mo9pypvGi5JHh8ES2stVSoyCdF46E4MgwbYLlsHoxD5UN7zehr04VtX+kIIUejf bOy7EEwTy02zYLhefqNiDiy8qUpc7+WVyXmqJzW3jydejdMujKKnlAjqAsR+0XeXaATd XQ07OFMzRIsVNuIBtkQgKyliyHcvBS++gXFFTkpxAawEMfw+l5kParFGpnmv//wdg7Ss 9Q2sKgXprn6mBud+DZGpRBqKR/PAmsZHWUQ0CNUyZ+lkWGTZDAEXbsGG1g5Cudby0THG H0VKtZTL5xDT2MhHZMt55dxZyBa7oJswy2PICDJbYw2Uyeko3prBtZ1LlvhsdKsg3kNk eJ2A== X-Gm-Message-State: APjAAAWGew7HypHBFQ0wKSsME2lTJIwqADF/sUHUHlgFNbFWaYJVq9vD HKcx76XqHBSX9LDqZsgPAzUpxkym X-Google-Smtp-Source: APXvYqzNxX3FkeNi4MdUGlitKn00CbYanmhKj3Jte5TqTZdfVbk67fxdRIBrcsSJP+KRh23zVZsZbw== X-Received: by 2002:a24:45a3:: with SMTP id c35mr1651272itd.37.1553267374827; Fri, 22 Mar 2019 08:09:34 -0700 (PDT) Received: from Kael (67.230.166.176.16clouds.com. [67.230.166.176]) by smtp.gmail.com with ESMTPSA id c1sm1476118itd.23.2019.03.22.08.09.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Mar 2019 08:09:33 -0700 (PDT) Date: Fri, 22 Mar 2019 23:09:28 +0800 From: Chris Zheng Message-ID: <20190322150928.GA11164@Kael> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hello Michael, The patch works for me. I am running Emacs under MS-Windows and try to connect to a GNU/Linux box. Thank you, Chris From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chris Zheng Cc: 34943@debbugs.gnu.org Received: via spool by 34943-submit@debbugs.gnu.org id=B34943.155326896028337 (code B ref 34943); Fri, 22 Mar 2019 15:36:02 +0000 Received: (at 34943) by debbugs.gnu.org; 22 Mar 2019 15:36:00 +0000 Received: from localhost ([127.0.0.1]:54613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7MDA-0007Mz-Ga for submit@debbugs.gnu.org; Fri, 22 Mar 2019 11:36:00 -0400 Received: from mout.gmx.net ([212.227.15.19]:35531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7MD7-0007Mk-Rh for 34943@debbugs.gnu.org; Fri, 22 Mar 2019 11:35:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553268951; bh=OaWsDU9durunytCjrpFT1oPDlLuCNH1y6XIxCpfC89M=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IFBo/Z+rgYwH4/y5+vQkC+jY953Ds6+rNali4/eCzjEhzcKlw2pLHkrTMgvau0PpN ePekNjgnELJ9FfoStcxPwdlMPRIbsaER1pNNQT8NdjqeuMmlwdsl6a6gFU2rcO9WY+ UeeS5xUMKQXYkgmwz/YesNfGWVxE59y0fTcFdk80= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.60.108]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MRGTX-1hZFX73k7T-00UcuL; Fri, 22 Mar 2019 16:35:51 +0100 From: Michael Albinus References: <20190322150928.GA11164@Kael> Date: Fri, 22 Mar 2019 16:35:49 +0100 In-Reply-To: <20190322150928.GA11164@Kael> (Chris Zheng's message of "Fri, 22 Mar 2019 23:09:28 +0800") Message-ID: <87zhpm53ca.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:61d0bQuryADP7xR9q5+yDFTIQ/+54YZbvpvoYnuZOIOqx328RRy MIXkU1XmUJ6C02QGEcfAfF/OXL7zxu/9seTFQ7DhSuCNI6v8lZzNfXBzp2mEGdzlbAs8xWB vvBteahpgtimjFzVm1fwmin008aGn/v9sRnZL4fpQ311enCK6mhasy31vjPsK6Lt4ROp0jP TJw6QqYbRPCu9Xmm7Civw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:FHA5Zb4qkYI=:Dr05jd5VJCwpLtgM/GYjWs BwRICM61nMiOxEV1UAcXxjg7D0VMLtWM0dpkV9SYlDUsmGakXC7qPqJ/tUJNrJiJwH9AFL42q eHKgaUeC2M9wTumawKPAP3/dJG1zL0jvKvNB29vdo97bHZOsB2zM7gYCHfPRL/0EUnaoi1DRy /It6VsTX0gg6Fe27Ty7AIfJM5Q0zbmxj/lz78rsQBoId51wWUASiImQuDfiYX7bOSL5/VE9ed 0RjYfOiJAhphQKkXER6kWTBlJtYKOLa1Prx7T8tEXD2X/3Q+lIg0hoTGLTDR8OP+l3TH/HvWz V7MHQ16Ry3zRkJ6Ft6K3/5BEr86w8yLHhDCA0ekpaHg5OQPRukd5Grgi3BsV+4bR1AdysOcLb KR5pXMQSOpgSqgHqQp7GKk/x9bNYXoxJrH68lOKfatp1F6ulQs4Yr4OOh0CCcZT1iwWNyOMtv 7iB6A9RyDJ/22UGoV/PsjAmnJfpcytmM99RduyYBXpo+8Xmh0KDXzWUuR9620edqP4Y6ZAqzJ hYrxeL5RKllJCfVmwrrrIqUCEL7E3DltL4RnfbPeNiYiLW8MO2IwYqO4ZNFJO1Nc6vhEHAAr7 yFAJIqZxfM/flU+P1HUw3l3H9U1A+wi8jAMX3gUN3HDix+T6WtS70B1gLzcqm6n0PW8TnEV7W BGxHPFKHKVrizYxZiQF/gxWA3tJA23ocnQxXOT8DsoQWUg4VdKYDpr42AoaPey5UnuNJpHXlu x6oylf2WNmjLOAjpgz6Sdg+FldarczArfuohMZwkABQ8MP9D9a8AXjwD/vB6QkHOF8u202XvG eWY4cQqwlgBwe/mBkDJjnr4qutmVPLKETbYZBwzDN8cnWxzbXJG2SGgpAPMzGskBF+uo71iY1 gb9bZeyOfru0fVFyGTDcULuNGJqBFOgJB0o4z7W2T1KwBr18TL4iWAIPp5vKC8PUdLG2CeGiL 4KCwDf01H0Q== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Chris Zheng writes: > Hello Michael, Hi Chris, > The patch works for me. I am running Emacs under MS-Windows and try to > connect to a GNU/Linux box. Thanks for testing! I'm waiting for the confirmation of the OP, then I'll push. > Thank you, > > Chris Best regards, Michael. From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 04:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 34943@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155331465911598 (code B ref -1); Sat, 23 Mar 2019 04:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2019 04:17:39 +0000 Received: from localhost ([127.0.0.1]:54906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Y6F-00030z-0g for submit@debbugs.gnu.org; Sat, 23 Mar 2019 00:17:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Y6C-00030m-S8 for submit@debbugs.gnu.org; Sat, 23 Mar 2019 00:17:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:37919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7Y67-00025T-KR for submit@debbugs.gnu.org; Sat, 23 Mar 2019 00:17:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7Y66-0007o6-4B for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 00:17:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_20, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,INVALID_MSGID,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7Y2N-0005lr-5r for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 00:13:40 -0400 Received: from smtpbgsg2.qq.com ([54.254.200.128]:34178) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7Y2L-0005l9-UK for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 00:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1553314409; bh=A+DJr12zrSFirLRd5yOuHenafjRjEiVbRdCU034xJJ0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; b=RDVLSeD79XHctGDR+Hfegod1iWAZVMFGgmgOf5nKbuu4cXXLM4hDsd/ds7yCiTEOg wYJ/u0DNRUOnOjstIrt9LtVTu5WfOZ5RqzEgs7xc1AK/oyActa1fhVutrXzOBdSKDW PbzBbh25enQHgT6KPoasUy6urnoYJUpl30szrBr8= X-QQ-mid: esmtp2t1553314407thiy8ques Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Sat, 23 Mar 2019 12:13:26 +0800 (CST) X-QQ-SSF: 01000000000000F0F5200F00000000G X-QQ-FEAT: qYS6qym2pYdYn3eXAkRGi8jjQ4CJisb5bHqwV3pB1FiDIbxhd/t1qHApF6Hhi kkeGAHW8mRmyAW8BIFZ1uOgRpkbL5I1WB35uSFy+Dbm1op0dyyovGda/yrZSmSzoEDlESI0 lPtyk+w/Y3cnTc6APdXS+CE7IqWYW3QSJbCN35oUtjRY6xuI2lKENrYzRAaER5kEHMnKdDz nJfHeEitW+dkLKzavJsSZjezFUNO8gGBTfkK8wZlQIBxayG8inNjrWZh5emjPee328XyRk4 vGoY5LDg1QmFI6SeRi5pKLlj5VwGcZd74t6RP11aHBIZ+W X-QQ-GoodBg: 0 From: Shuguang Sun References: <41148.0504948244$1553236696@news.gmane.org> <87tvfvatfn.fsf@gmx.de> Date: Sat, 23 Mar 2019 12:13:52 +0800 In-Reply-To: <87tvfvatfn.fsf@gmx.de> (Michael Albinus's message of "Fri, 22 Mar 2019 15:13:16 +0100") Message-ID: +84B887AED736CBAA User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 54.254.200.128 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Albinus writes: > Shuguang Sun writes: > >> 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 [...] Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gmx.de] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=shuguang79%40qq.com; ip=209.51.188.92; r=debbugs.gnu.org] 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Albinus writes: > Shuguang Sun writes: > >> 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 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: host.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=shuguang79%40qq.com;ip=209.51.188.92;r=debbugs.gnu.org] 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Michael Albinus writes: > Shuguang Sun writes: > >> 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. > > If `explicit-shell-file-name' is given, it must have precedence. What > about the following patch to master: > > *** /tmp/ediffWyfTux 2019-03-22 15:09:52.065151959 +0100 > --- /home/albinus/src/emacs/lisp/shell.el 2019-03-22 15:09:35.080867417 +0100 > *************** > *** 721,729 **** > (current-buffer))) > > (with-current-buffer buffer > ! (when (file-remote-p default-directory) > ! ;; On remote hosts, the local `shell-file-name' might be useless. > ! (with-connection-local-variables > (if (and (called-interactively-p 'any) > (null explicit-shell-file-name) > (null (getenv "ESHELL"))) > --- 721,729 ---- > (current-buffer))) > > (with-current-buffer buffer > ! (with-connection-local-variables > ! ;; On remote hosts, the local `shell-file-name' might be useless. > ! (when (file-remote-p default-directory) > (if (and (called-interactively-p 'any) > (null explicit-shell-file-name) > (null (getenv "ESHELL"))) > *************** > *** 732,757 **** > (expand-file-name > (read-file-name > "Remote shell path: " default-directory shell-file-name > ! t shell-file-name)))))))) > > ! ;; The buffer's window must be correctly set when we call comint > ! ;; (so that comint sets the COLUMNS env var properly). > ! (pop-to-buffer buffer) > ! ;; Rain or shine, BUFFER must be current by now. > ! (unless (comint-check-proc buffer) > ! (let* ((prog (or explicit-shell-file-name > ! (getenv "ESHELL") shell-file-name)) > ! (name (file-name-nondirectory prog)) > ! (startfile (concat "~/.emacs_" name)) > ! (xargs-name (intern-soft (concat "explicit-" name "-args")))) > ! (unless (file-exists-p startfile) > ! (setq startfile (concat user-emacs-directory "init_" name ".sh"))) > ! (apply #'make-comint-in-buffer "shell" buffer prog > ! (if (file-exists-p startfile) startfile) > ! (if (and xargs-name (boundp xargs-name)) > ! (symbol-value xargs-name) > ! '("-i"))) > ! (shell-mode))) > buffer) > > ;;; Directory tracking > --- 732,757 ---- > (expand-file-name > (read-file-name > "Remote shell path: " default-directory shell-file-name > ! t shell-file-name)))))) > > ! ;; The buffer's window must be correctly set when we call comint > ! ;; (so that comint sets the COLUMNS env var properly). > ! (pop-to-buffer buffer) > ! ;; Rain or shine, BUFFER must be current by now. > ! (unless (comint-check-proc buffer) > ! (let* ((prog (or explicit-shell-file-name > ! (getenv "ESHELL") shell-file-name)) > ! (name (file-name-nondirectory prog)) > ! (startfile (concat "~/.emacs_" name)) > ! (xargs-name (intern-soft (concat "explicit-" name "-args")))) > ! (unless (file-exists-p startfile) > ! (setq startfile (concat user-emacs-directory "init_" name ".sh"))) > ! (apply #'make-comint-in-buffer "shell" buffer prog > ! (if (file-exists-p startfile) startfile) > ! (if (and xargs-name (boundp xargs-name)) > ! (symbol-value xargs-name) > ! '("-i"))) > ! (shell-mode))))) > buffer) > > ;;; Directory tracking > The patch works. Thanks. > >> 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. > > I'll check when the first problem is solved. FYI. explicit-shell-file-name and explicit-bash-args are still non-safe local variables now. > > Best regards, Michael. > -- Best Regards Shuguang Sun From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Shuguang Sun Cc: 34943@debbugs.gnu.org Received: via spool by 34943-submit@debbugs.gnu.org id=B34943.15533315984950 (code B ref 34943); Sat, 23 Mar 2019 09:00:02 +0000 Received: (at 34943) by debbugs.gnu.org; 23 Mar 2019 08:59:58 +0000 Received: from localhost ([127.0.0.1]:54996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7cVS-0001Hm-F0 for submit@debbugs.gnu.org; Sat, 23 Mar 2019 04:59:58 -0400 Received: from mout.gmx.net ([212.227.15.15]:54223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7cVO-0001HV-6t for 34943@debbugs.gnu.org; Sat, 23 Mar 2019 04:59:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553331583; bh=FXWkI7ldaBi7z0zVVIvqhX3jDJX4D+rdFaufta6TIgM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=GbGUYWx/UC6RfFCSikUE3hjLLvFiL++OueZ/6Lt1PQlwcnFCXugXpHUM2EWNJD7MG /v+q3wqrmwoq2R4vP+Q1bYa1NGVqpJnpXy4nDfZX06AGoqANZ2fIcUYbyQHtyBvWg2 d7um5qq27o+Kd+iVl1zunbgIQBMQPkj8/eGmX3vU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.60.108]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M0h9K-1grTI92lfq-00ur5X; Sat, 23 Mar 2019 09:59:43 +0100 From: Michael Albinus References: <41148.0504948244$1553236696@news.gmane.org> <87tvfvatfn.fsf@gmx.de> Date: Sat, 23 Mar 2019 09:59:42 +0100 In-Reply-To: +84B887AED736CBAA (Shuguang Sun's message of "Sat, 23 Mar 2019 12:13:52 +0800") Message-ID: <87tvfu3r0h.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:PDKP2iuVgs5TjIsQFlZZp/Bq79hZMRvzeicKoUgPo2yUg1oxUZj 6NlR6JdAdFd5TpPSYdkr5yp3PTqPFZFL5VUaGcXfZ1frdN5NsKt2Cam9YYHtrDf2XJJpM1p Zs91rdA1/PF68PeO53tK18V0HonkHM6cyYlnFa4lbk3SJniGzxweg1cD8EaAk34cuxYkwI3 aIXKGOs5CgmguHeZnr/HA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:80RaUiG/uKY=:YiJxyojsC1Qbu+P7X9NM+Q TDslX5/ipcqegyNIL0uadVD4PalrmMLp6Jx1Ae4hRZqT8bEUiDs0nSeRafGoSQB5EffqPc9wZ h1HKygm5YDmosBXqRpfFT01AmUz6HrsLrFxSgyvVnuuMsuxfV4pNIsAd1Mq0+evZif8qWcEqL ryAoCPzREUJCTfg4V4MhPpAs7LyLpqCOnrNBNdbxN1/SfchsDP5B92kawt9mpKeWsGT/pU8wy sMOb23ChwBRVTFf2ZkfcoTidg0Qma80ghK4DBHxZJl++trTkISqtigYgrR0tF9G7Hh7MI/uJ/ f7Tm5rcS4easQ9ayFGGZ5oL/kK6v2gaoGSAUFwzTx5k+d0n1yo/8IVGakG0l+TfwGfO9c9piy Jjhh3R9WfJv+acnSPBcJ09Ll4jxUxZbvlOqwlafJHM9UvEl2d3+KskSGvIUpDvnn6Hzkw9dWD v0OnbhBSwLzUgn59NLdmmMSZSmKrm+L4gwahtmmiOuavDOTKkoseJ4tD5xJ/KF5eVOilVkck4 bELV00jmzwnM35/KEL4XEORVWBax6uGV0zuEoyfta3G4S/3coJ7vGaiIT7aw+grlsJ4aE93Zm oEMh8Ho3GC2tV3BPpXmcbWcotjUp976JK28TGi+E8crFHNE+RmL2oMYRHLNh/eZ3fN0YAEAIP c9rKg5ppcyDtcRK192OPfJxomvr4+Pb6WdeFin0JyX8WyRb0x0i2+1x+0koA6m5kVmsfq+77s WVums2ml7GKZwKX+Pt9WlhCopU7eRdyHUJ4E1z4aebyXiMbmCaiBFkPcwzjuqqIpbTn3oyrwj E6U3AipOmj4mnCwjMzPpZjhv+aOWYIMOEkxWDjlIW0FYLVKYgkQKH2q7Y8MR6/pPwijmGZkHH OGiBKHz8Z+hge4GoAfl8EHuk6h06d6ifWspOZz8P0SrJJ7mmKpkmiMpz+uIe8uibRvs4Xgy07 vYlpF+zxMvg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Shuguang Sun writes: [Pls Cc 34943@debbugs.gnu.org, and NOT bug-gnu-emacs@gnu.org] Hi, > The patch works. Thanks. Thanks for checking. >>> 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. >> >> I'll check when the first problem is solved. > > FYI. explicit-shell-file-name and explicit-bash-args are still > non-safe local variables now. This shall be fixed now as well. Could you, pls, confirm? Everything pushed to master. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 23 05:00:25 2019 Received: (at control) by debbugs.gnu.org; 23 Mar 2019 09:00:25 +0000 Received: from localhost ([127.0.0.1]:55000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7cVs-0001KN-P0 for submit@debbugs.gnu.org; Sat, 23 Mar 2019 05:00:24 -0400 Received: from mout.gmx.net ([212.227.15.19]:38871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7cVp-0001K8-Tk for control@debbugs.gnu.org; Sat, 23 Mar 2019 05:00:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553331616; bh=AzOMnxIMqkaazaSqtKZhgZk1kbs0d09PGLAuk3IXNi8=; h=X-UI-Sender-Class:Date:To:From:Subject; b=Wxank+7gsfcCSm4//QwEGrD0xi41TMUjfj625+j7rIi8is8rZEJcFXgijIDNLnS25 PZ6dsjpnXCCbx55IPAKDSeF+7U4MgBd4aogqggPDS+AOewT1BOrr2OuDKB2HNINETK ZaQfNKCg0h2KmJwZZB7YatrpIsxoCYNp+wUpgS0U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.60.108]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Meg8W-1hMwSt3ezA-00OEkn for ; Sat, 23 Mar 2019 10:00:16 +0100 Date: Sat, 23 Mar 2019 10:00:14 +0100 Message-Id: <87sgve3qzl.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #34943 X-Provags-ID: V03:K1:ad+9c/1QabWxDN0PUUQv9cWQGvB7SPbNwjVnFmlagmpK7Ypf8eY VUQmT+Pt/A9n3kIfDaV38giyNuYzKp9V1HnoANFuzD5URvpvi7CMw0xNz9kxnbARyFTDzMc zvywMxMuCxhaTHRBUvpnLSHQkNNh/nOHLjaR92bO2pg/8HcOCLPt/hZSig7nZGH3ab/nLTz VRjihY6uE5+BlOAUiP0Dw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q0tI9XfSLmQ=:DZl9XX+3KzH+/VDjWqNeLE BN0eV/E9fry88x3Uvcn4UjFDUGb/kCEVtsxl9LNhRuocGzkOG/hJfeFIOPKerKC2xqcZBNuaP XOJeunrgUg/gx3Ifb3KTAAPo2Zy9WqW4ctWLbiM6jfoaCcfze/CNVYZbE50eeCWDzlPo6DtZy BcmQ1e+I8WfgHdKyfs+TShbZJKodKI0QxZpeWI6tuN6RJECHQZhMvyqzZvAsSXPT2jt5BQd0w QTHtrFxu9ZGG7PsJcp94qvKy05ahypMLdTjOLN7iUCdESXvFJWNO81DCfhf57oI696OYDqTGY Cr1GpjyfMFoPebsGAaNczELEKb0aQ2T0f3ze1fxH4/xpwNQRJjjP+n6BU4sUNdyFpbA3uy9XO sfgd0T5fVNxuMS9vWFqx6YjuyW/gtcBfEnlKvKORoa07MDn+0H5cv2At1aSIZzsjPOI2V0T3y VtgLIQ8olEncQW9ht0yKep0n//n0XmtBzmT7e+2qMPIN/rzfWt842OCeZCi3eElWRRaBURJqx r+VWfXveHPNQSVKB8pl6lE9geWyeP4OYVTbDSge5/9pJZj1xAFuXyOzuItxecgrz4RJ4fSVYl RJgbTRXdnwDmo2Od3maM96GgnBUAx2VEZv2Ko6ejb5Kv2xSxnLfpPNk159Mzas5C3cXEWfRA/ fLFWYoIRsis086RkezpIIdYyabe0SAQJW+etqzRAOJ1+/4BTOY9fh6dt6Rda8APEaBEBomknO tTuzJK+aANx+DDoHn7C6WBiBuwe9tkJheizaVcEr2h9e5QmIeOaHoFoulLzs1BkKp0ckVgCrH Y5gK4R22nNCf6Dm++RFrFLRZUm/pK7s37E00zuAw3OLRHydMY8kDQpB0nX7uB3Qheqoe/Vz+2 1Ics/Zkj00g+kcJB2UIiIlo5EsamCpii5Y1Q0vknzlSF3zUM6mwBHuTVtngZBJ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 34943 fixed From unknown Sun Jun 22 04:34:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable Resent-From: "Shuguang Sun" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 15:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: "Michael Albinus" Cc: 34943 <34943@debbugs.gnu.org> Received: via spool by 34943-submit@debbugs.gnu.org id=B34943.155335572426198 (code B ref 34943); Sat, 23 Mar 2019 15:43:01 +0000 Received: (at 34943) by debbugs.gnu.org; 23 Mar 2019 15:42:04 +0000 Received: from localhost ([127.0.0.1]:55686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7ima-0006oU-Ex for submit@debbugs.gnu.org; Sat, 23 Mar 2019 11:42:04 -0400 Received: from smtpbgeu1.qq.com ([52.59.177.22]:35432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7imW-0006nt-6S for 34943@debbugs.gnu.org; Sat, 23 Mar 2019 11:42:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1553355709; bh=wz9RYXifiBLinQHesd+kZblY+D2gvfLUs2iy6LHRXpI=; h=In-Reply-To:References:From:To:Cc:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date:Message-ID; b=x3ZdFmTvp3VfOosEx366HappqSbBdBUnl7arl0LMf5iFmmaxgpVan7+goi7sbYDoX rQX3YGIPzUGu14f0nYDy8EyX+G6Y7wEJfbWpIK2Gh0H9UQ782vUmuQc5hvF07N4dEA FBydwqdew4edkDw5o09t2pBGV5QtV3iptGqklj4U= X-QQ-FEAT: oMUW0gzchGfY0wtIKCSDBHY0FJPZg+WOg4YkXv2etAfSbeJCfWHknveZYuuNu erj75fhLd4sX637OEv7msc8aVoLzgh1rakwsCgoJW1nroyq9c1a5eNV6AIYNkg5XJHyDSi1 QGjNnUKEJfq6+hidj4elKcSxX9JU4aMgCkxkowcgKTXYrbyHFZlUbyfx6GHSjbb+gfH1rH6 qT7mHH7Ia8LaFhkII1r1+60vAMSt0j68cQ+JnYc6V9QDL7y3UkU/koOoOmzqnJoumoUP7JE FVe7KTjIvLmlIHYnR065EiaoTybdGy3mHoHQ== X-QQ-SSF: 00000000000000F000000000000000G X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-Originating-IP: 211.144.9.206 In-Reply-To: <87tvfu3r0h.fsf@gmx.de> References: <41148.0504948244$1553236696@news.gmane.org> <87tvfvatfn.fsf@gmx.de> <87tvfu3r0h.fsf@gmx.de> X-QQ-STYLE: X-QQ-mid: webmail345t1553355708t8301210 From: "Shuguang Sun" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_5C9653BC_0AAF6D68_511EF28A" Content-Transfer-Encoding: 8Bit Date: Sat, 23 Mar 2019 23:41:48 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x X-QQ-ReplyHash: 1299865898 X-QQ-SENDSIZE: 520 Received: from qq.com (unknown [127.0.0.1]) by smtp.qq.com (ESMTP) with SMTP id ; Sat, 23 Mar 2019 23:41:49 +0800 (CST) Feedback-ID: webmail:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is a multi-part message in MIME format. ------=_NextPart_5C9653BC_0AAF6D68_511EF28A Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: base64 SXQgaXMgZml4ZWQuIFRoYW5rcy4NCg0KDQoNCg0KLS0tLS0tLS0tLS0tLS0tLS0tIE9yaWdp bmFsIC0tLS0tLS0tLS0tLS0tLS0tLQ0KRnJvbTogICJNaWNoYWVsIEFsYmludXMiPG1pY2hh ZWwuYWxiaW51c0BnbXguZGU+Ow0KDQoNCg0KPiBbUGxzIENjIDM0OTQzQGRlYmJ1Z3MuZ251 Lm9yZywgYW5kIE5PVCBidWctZ251LWVtYWNzQGdudS5vcmddDQoNCg0KDQpUaGFua3MgZm9y IHRoZSByZW1pbmRlci4= ------=_NextPart_5C9653BC_0AAF6D68_511EF28A Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: base64 SXQgaXMgZml4ZWQuIFRoYW5rcy48YnI+PGRpdj48ZGl2Pjxicj48L2Rpdj48ZGl2Pjxicj48 L2Rpdj48ZGl2IHN0eWxlPSJmb250LXNpemU6IDEycHg7Zm9udC1mYW1pbHk6IEFyaWFsIE5h cnJvdztwYWRkaW5nOjJweCAwIDJweCAwOyI+LS0tLS0tLS0tLS0tLS0tLS0tJm5ic3A7T3Jp Z2luYWwmbmJzcDstLS0tLS0tLS0tLS0tLS0tLS08L2Rpdj48ZGl2IHN0eWxlPSJmb250LXNp emU6IDEycHg7YmFja2dyb3VuZDojZWZlZmVmO3BhZGRpbmc6OHB4OyI+PGRpdj48Yj5Gcm9t OiA8L2I+Jm5ic3A7Ik1pY2hhZWwgQWxiaW51cyImbHQ7bWljaGFlbC5hbGJpbnVzQGdteC5k ZSZndDs7PC9kaXY+PGJyPjwvZGl2Pjxicj4mZ3Q7IFtQbHMgQ2MgMzQ5NDNAZGViYnVncy5n bnUub3JnLCBhbmQgTk9UIGJ1Zy1nbnUtZW1hY3NAZ251Lm9yZ108YnI+PC9kaXY+PGRpdj48 YnI+PC9kaXY+PGRpdj5UaGFua3MgZm9yIHRoZSByZW1pbmRlci48YnI+PC9kaXY+PGRpdj48 YnI+PC9kaXY+ ------=_NextPart_5C9653BC_0AAF6D68_511EF28A-- From unknown Sun Jun 22 04:34:11 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Shuguang Sun Subject: bug#34943: closed (Re: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable) Message-ID: References: <87lg14igua.fsf@gmx.de> +24200EB93EE685D5 X-Gnu-PR-Message: they-closed 34943 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: fixed Reply-To: 34943@debbugs.gnu.org Date: Sun, 24 Mar 2019 12:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1553431382-24529-1" This is a multi-part message in MIME format... ------------=_1553431382-24529-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local= variable which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34943@debbugs.gnu.org. --=20 34943: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34943 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1553431382-24529-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34943-done) by debbugs.gnu.org; 24 Mar 2019 12:42:53 +0000 Received: from localhost ([127.0.0.1]:56097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h82Sj-0006NH-40 for submit@debbugs.gnu.org; Sun, 24 Mar 2019 08:42:53 -0400 Received: from mout.gmx.net ([212.227.17.21]:37891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h82Sg-0006N3-Qo for 34943-done@debbugs.gnu.org; Sun, 24 Mar 2019 08:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553431359; bh=N1nEdDkPNy+0dCWzRkQwdrBLVeR5t4u+zdoQu0vkOkU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Hz+HP45Kns7W/MbqBQnJLHayLqY/gXQJgVZzYiHZ1ZGir4ZDPwiuwwn7QoMJ+E2ok YGR1p3CuvKRxh4LVPc2dPHYjytU/+1/YuEZfx0T8j7h0o1oTXL+2oFLLFB34e0n5Zb hKGW2tyHyeat3e8TXW0Bd1i6yUIZX6LY+Ryk3CRA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.148.245]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lm7MT-1gYhdn3xFB-00ZcH0; Sun, 24 Mar 2019 13:42:39 +0100 From: Michael Albinus To: "Shuguang Sun" Subject: Re: bug#34943: 27.0.50; Tramp explicte-shell-file-name not work and not safe local variable References: <41148.0504948244$1553236696@news.gmane.org> <87tvfvatfn.fsf@gmx.de> <87tvfu3r0h.fsf@gmx.de> Date: Sun, 24 Mar 2019 13:42:37 +0100 In-Reply-To: (Shuguang Sun's message of "Sat, 23 Mar 2019 23:41:48 +0800") Message-ID: <87lg14igua.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:5UZQtM+goKe6sEkGqrHBcBUikPV+i36ZSd1Dlpyt7yLlJBuzLj2 EVu5d1IrFPXCOHYj47Mmjlop2yAX63F5p2zyY5ujnElx8Olffa5ZwjNdkD4TbImTqVBJtcY BO2TjywC+SYGQ9emaQ6XJTHMApQKVSg73FUinfbitWOHa1rmTffSkzLQzlYCaZwOHYBMzsu pIe9qZSc7/yxmg+Q0w94g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:N60ePAZC5s8=:EYWNqnpl0cy5snZOp7KdOc 4+SCcz1hq1C4JU0Tf2Z7BhcRPQNi20sQ+YI82abkAHq2gVxQ4nAKvywgz3pAgImLQIQ8aTmWR 1jPeJITNdZB8y4i05/XcIXa+mE9tBofjdRGTKPhIN573PCEHb8AA2yXS0wu8/uZtNA71Z3HNP e3QolVhkxBtwDfol4XC5OipN7blZXxtO+f9QEN9c7KHB9try/3hmkd+2to8xLy+p1NSVGdkj6 1JJpe2JVxfgs1Y+cMffhxLXJggvp3ADQIyeX/2PTfQVo5B6Y681X1hHW+74ZI9jABm5dDy8ze /PF7eltwhWw16eES9HHT4ZmO/dBjNRpv5PNaoYjFSloPdpXUzsVR2/87nKligszM3s/GoOw7F SyH1XVEAWuWdbcHKyAcvzcQiSMjbp2jz6hLcigl6hYgJwTtDCOZ1cqfMwJ6t65Mke47tmckqk gKYBvKibe9zrT9wh82UVeUWuJ5wCZ9uNIKEtyd5lrh6nli38JpyamtBeKDgq5EVh/qDVdoJpd A3rV9d7LScZXftAC/Nedw/dIVjiSmKm5EAQDhAQbFN0IlNyAef5SYX04bkJxmnbJ9r0fiDJ8H 9dDw7qouzyW62LyNba6opmgQGar9nGg2eWlUhyp9NXy5LNrd74AAaU5IMAUwQGWlxYnlzMJgo 8yE6LtejT9iajGdOZprXCZRrpqoa1JZE6j25kByIhdEGcZBMyZXFW/ew0/gRsmFEZcGjP6k6K k8XQ5uNkNIy+40r68JVGzjPQ/DEHbEU3vOWwZx/TTaNvN7bOtXv7r3yNPSyzI9TDUKmAmi97c 1qHXFBM5oBgnpfB4/eQt+50cbuy7ykKJ9RfliGUuoeijU+2hKGimR6jR8/+YD9KbRWr8128bc tXJF0vMlMzkDCC4dOteh6pqJgrJ9AHx/UYmq+HZLuq4hzsIJ+ejfxIvvNSES2y2SMlluPic1+ kqMH6DFfVCQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34943-done Cc: 34943 <34943-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) "Shuguang Sun" writes: > It is fixed. Thanks. Thanks for checking, I'm closing the bug. Best regards, Michael. ------------=_1553431382-24529-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 06:34:48 +0000 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,INVALID_MSGID,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 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 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 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 From: Shuguang Sun To: bug-gnu-emacs@gnu.org Subject: 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: +24200EB93EE685D5 MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 184.105.67.102 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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.e [...] Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=shuguang79%40qq.com; ip=209.51.188.92; r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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.e [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=shuguang79%40qq.com;ip=209.51.188.92;r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 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 ------------=_1553431382-24529-1--