GNU bug report logs -
#67126
eshell breaking tramp-remote-path
Previous Next
Reported by: Xiaoyue Chen <xchen <at> vvvu.org>
Date: Sun, 12 Nov 2023 10:12:01 UTC
Severity: normal
Tags: patch
Fixed in version 30.1
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67126 in the body.
You can then email your comments to 67126 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67126
; Package
emacs
.
(Sun, 12 Nov 2023 10:12:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Xiaoyue Chen <xchen <at> vvvu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 12 Nov 2023 10:12:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
Hello,
Commit 2af092741e5 broke tramp-remote-path, making eshell unusable for
sudo, ssh, etc. So any emacs version after that is effected. I found the
issue on emacs 29.1.90.
Steps to reproduce:
1. emacs -Q
2. Evaluate the following
(require 'eshell)
(add-to-list 'eshell-modules-list 'eshell-tramp)
(require 'tramp)
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
3. M-x eshell
4. Type "sudo uname" and press Enter
5. The output is erroneous
sh: /home/xchen/env: No such file or directory
///374ad82e298d0a7279e9e4c98722b9f5#$
The cause is a minor error in eshell-gather-process-output
(when (file-remote-p default-directory)
(push (concat "PATH=" real-path) process-environment)
(setq tramp-remote-path (eshell-get-path)))
tramp-remote-path should not contain the remote part of the directories,
so use (eshell-get-path t) fixes it.
Attached is a simple patch to fix this issue.
/Xiaoyue
In GNU Emacs 29.1.90 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.16.0, Xaw3d scroll bars)
Repository revision: emacs-29.1.90
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101008
System Description: NixOS 23.11 (Tapir)
Configured using:
'configure
--prefix=/nix/store/0hkpjpd4nh282znb7z225iramjcgrv0n-emacs-unstable-29.1.90
--disable-build-details --with-modules --with-x-toolkit=lucid
--with-xft --with-cairo --with-native-compilation --with-tree-sitter'
[eshell.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
--
Xiaoyue Chen
VVVU: Workers, Unite!
Reply sent
to
Jim Porter <jporterbugs <at> gmail.com>
:
You have taken responsibility.
(Sun, 12 Nov 2023 20:20:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Xiaoyue Chen <xchen <at> vvvu.org>
:
bug acknowledged by developer.
(Sun, 12 Nov 2023 20:20:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 67126-done <at> debbugs.gnu.org (full text, mbox):
Version: 30.1
On 11/12/2023 12:52 AM, Xiaoyue Chen wrote:
> Tags: patch
>
> Hello,
>
> Commit 2af092741e5 broke tramp-remote-path, making eshell unusable for
> sudo, ssh, etc. So any emacs version after that is effected. I found the
> issue on emacs 29.1.90.
Thanks for the fix! I tried your patch and everything seems ok, plus
it's obviously correct by inspection.
Applied on the master branch as 52afc64bad7 and the emacs-29 branch as
5bebd292c63. (I accidentally merged to master first. Oh well.) Closing
this now.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 11 Dec 2023 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.