From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#57556: 28.1; Eshell not finding executables in PATH when tramp-integration loaded Date: Sun, 18 Sep 2022 13:18:37 +0200 Message-ID: <87h715j5gy.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39613"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: coltonlewis@google.com To: 57556@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 18 13:19:20 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZsKW-000A95-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 13:19:20 +0200 Original-Received: from localhost ([::1]:34554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZsKV-0002iv-1K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 07:19:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZsKE-0002ij-3u for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 07:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZsKD-00044O-S0 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 07:19:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZsKD-0003vl-MS for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 07:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 11:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57556 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Colton Lewis via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Colton Lewis , 57556@debbugs.gnu.org Original-Received: via spool by 57556-submit@debbugs.gnu.org id=B57556.166349993415093 (code B ref 57556); Sun, 18 Sep 2022 11:19:01 +0000 Original-Received: (at 57556) by debbugs.gnu.org; 18 Sep 2022 11:18:54 +0000 Original-Received: from localhost ([127.0.0.1]:48053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZsK5-0003vM-Ko for submit@debbugs.gnu.org; Sun, 18 Sep 2022 07:18:53 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:49699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZsK3-0003v6-4b for 57556@debbugs.gnu.org; Sun, 18 Sep 2022 07:18:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663499921; bh=FXIxjbEil64CAqYt9JShW728Bfgum5+d3pPiRE+TYM8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ax42+I+gWp0NXNKgFhTOxR2YqGmcZNvsIlJURlgi9qo4jRuhuBcKPD6lAUuhsuLRT SsOci609aft/7veLiiuzzk+FqNWQJVnaytKKZY9s/Em9VdhDTTS7cJEDWnNKPKNH4Z BorT6Az7MQ/JbTXEnoavjMq8aVryu1tCDzzqDekU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.159.44]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBm1U-1oS82117nw-00C82E; Sun, 18 Sep 2022 13:18:41 +0200 In-Reply-To: (Colton Lewis via's message of "Sat, 03 Sep 2022 05:03:20 +0000") X-Provags-ID: V03:K1:Q+pE7qbcWNyV4QPpEwLWNHXroIX2YGvr5PmXzggsvIv/tuikR0R TB8vmdxEkPYpO9ClyHLc5QvAGZRXhrGQncdJ1h6epvfGxrcOc6/8q7KwxMCEjTRGAKDQWgN QEbaGAdyMzn0RSL4jh85t+AEKoeEQOJzZ7Y73PkRqA17d2M2bUy7JnZBDxqYQ34Y7mJtWyE KbWJNo0E/AALvyLaQuX+A== X-UI-Out-Filterresults: notjunk:1;V03:K0:EnUa92gNqys=:YJ7zjPp68dCtoX+7W8VbmR HLp7xRQvczWDr1J5nl3c7Ju/Sdh22wyD7FcBActePnfIUsGq12EeS3FYkOtdV4TK3gaXLTBNE xyTYcs6q7vvsmxlBXZB9F7FO5yJGY803gfmDTorTsvJvzDziK+Ouhvm/y3VsdF/Mjnb0XZse3 jOyLfz1CLv/OcaFL9iyW+fUMrnXRYky3JdBG7LkTgK6GAghXwi1I6nK7DmxKk0PCkpjbbRzC0 3PNsbrn0ZSITpndUGk0PS1M92cTN3vLq1N+u8eNiUAoIX8dKoubnt1n2NuOXPv0RTvfg3Qpab YNwnjjXSE2pk5b8YVBaPdYIobebeLMBtP0O+wCoGOheeITkGm3bHxNsVRqIDn9SdrmTAPKPif 5eWgK858V+Szh1UKfPhwElYfgTxp6VDEI/0+ZXezNx1a8cNI1wXjxpI63ujwY020/xd6pO/fg ib0SX5IJLCjAqzX3qv1k0LoV30QHmlr1eWB6ps9yDOslHAldKvkebU8aiRq9p5ZWdcSJJaPEU qPQiypi+Y6glm/G0wY3c+8I6pvGbReFHgO0jnf9QZBsAtvgk4cpUaQIk5qtHhGDH44CYU/u4S MZwLlRIg3GyfR89a2o0xFkzKKc5xy+9Xrcb5LHzeagwtzlJgzR0JjTl69B+yfDmmorxjTfMDb Cis+wAskC4zH8AJrxiCaWsZx+R4dq8g3mkYMWwA+AJQxQ+nC5/WorBeywYGgmMzeH9Oon9QJb eszU3eZUaN0zIgElm4MS0dNyn9MwZR8xD8uO6iZoaNkvN/EQRrW/m8zowhviQEoIEmvQNB5I X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242965 Archived-At: --=-=-= Content-Type: text/plain Colton Lewis via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: Hi Colton, > 1. Create an executable script ~/test-bin/test.sh > 2. emacs -Q -l tramp-integration > 3. Eval the elisp snippet: > `(setenv "PATH" (concat (expand-file-name "~/test-bin") ":" (getenv > "PATH")))` > 4. Start eshell > 5. test.sh > 6. Observe command not found error I've fixed this in the emacs-28 branch of the git repository, will be merged to the master branch next days. Do yo have a chance to test? As reference, I've appended the patch. It isn't known yet whether there will be another Emacs 28 release, so this change will appear in either Emacs 28.3 or 29.1. But you don't need to wait that long, the next Tramp 2.5.3.3 release on GNU ELPA will carry this patch as well. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable *** /tmp/ediffO8DSK8 2022-09-18 13:16:26.974594555 +0200 =2D-- /home/albinus/src/emacs-28/lisp/net/tramp-integration.el 2022-09-18 = 12:05:50.293303445 +0200 *************** *** 134,141 **** ;; Remove last element of `(exec-path)', which is `exec-directory'. ;; Use `path-separator' as it does eshell. (setq eshell-path-env ! (mapconcat ! #'identity (butlast (tramp-compat-exec-path)) path-separator))) (with-eval-after-load 'esh-util (add-hook 'eshell-mode-hook =2D-- 134,143 ---- ;; Remove last element of `(exec-path)', which is `exec-directory'. ;; Use `path-separator' as it does eshell. (setq eshell-path-env ! (if (file-remote-p default-directory) ! (mapconcat ! #'identity (butlast (tramp-compat-exec-path)) path-separator) ! (getenv "PATH")))) (with-eval-after-load 'esh-util (add-hook 'eshell-mode-hook --=-=-=--