diff options
author | Jim Porter <jporterbugs@gmail.com> | 2023-08-27 12:53:40 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2023-09-07 10:23:48 -0700 |
commit | 2af092741e54af6bf3bde62cff370853aab46745 (patch) | |
tree | 4c5cf88bafd805f7ca2b3a4f168dd972f7d037a1 /test | |
parent | 4613575d97f6c2efea9fd28d33b0cec54c3298b2 (diff) | |
download | emacs-2af092741e54af6bf3bde62cff370853aab46745.tar.gz emacs-2af092741e54af6bf3bde62cff370853aab46745.tar.bz2 emacs-2af092741e54af6bf3bde62cff370853aab46745.zip |
Fix remote path setting in Eshell
This ensures that we supply Tramp with the local PATH so that it can
do its job of starting the local "ssh", or whatever the method uses
(bug#65551).
* lisp/eshell/esh-proc.el (eshell-gather-process-output): Add special
handling for remote processes.
* test/lisp/eshell/esh-proc-tests.el
(esh-var-test/remote/remote-path): New test.
Diffstat (limited to 'test')
-rw-r--r-- | test/lisp/eshell/esh-proc-tests.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lisp/eshell/esh-proc-tests.el b/test/lisp/eshell/esh-proc-tests.el index 8e02fbb5497..7d0432dbe68 100644 --- a/test/lisp/eshell/esh-proc-tests.el +++ b/test/lisp/eshell/esh-proc-tests.el @@ -259,4 +259,19 @@ write the exit status to the pipe. See bug#54136." output-start (eshell-end-of-output)) ""))))) + +;; Remote processes + +(ert-deftest esh-var-test/remote/remote-path () + "Ensure that setting the remote PATH in Eshell doesn't interfere with Tramp. +See bug#65551." + (skip-unless (and (eshell-tests-remote-accessible-p) + (executable-find "echo"))) + (let ((default-directory ert-remote-temporary-file-directory)) + (with-temp-eshell + (eshell-insert-command "set PATH ''") + (eshell-match-command-output + (format "%s hello" (executable-find "echo" t)) + "\\`hello\n")))) + ;;; esh-proc-tests.el ends here |