aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2018-09-06 12:16:00 +0200
committerMichael Albinus2018-09-06 12:16:00 +0200
commitbca35315e16cb53415649e5c0ac2ec0cc1368679 (patch)
tree1f14f3e4598f6ea3db33356c064488057e7573f0
parent79d7138c187a5a950e4d226de333db6404700332 (diff)
downloademacs-bca35315e16cb53415649e5c0ac2ec0cc1368679.tar.gz
emacs-bca35315e16cb53415649e5c0ac2ec0cc1368679.zip
Fix Bug#31704
* lisp/eshell/esh-proc.el (eshell-gather-process-output): Do not let `expand-file-name' prefix remote file names with MS Windows volume letter. * lisp/net/tramp.el (tramp-eshell-directory-change): Use `path-separator' as it does eshell. (Bug#31704)
-rw-r--r--lisp/eshell/esh-proc.el7
-rw-r--r--lisp/net/tramp.el4
2 files changed, 6 insertions, 5 deletions
diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el
index a7855d81db5..3735f30c304 100644
--- a/lisp/eshell/esh-proc.el
+++ b/lisp/eshell/esh-proc.el
@@ -282,11 +282,10 @@ See `eshell-needs-pipe'."
282 (let ((process-connection-type 282 (let ((process-connection-type
283 (unless (eshell-needs-pipe-p command) 283 (unless (eshell-needs-pipe-p command)
284 process-connection-type)) 284 process-connection-type))
285 (command (file-local-name command))) 285 ;; `start-process' can't deal with relative filenames.
286 (command (file-local-name (expand-file-name command))))
286 (apply 'start-file-process 287 (apply 'start-file-process
287 (file-name-nondirectory command) nil 288 (file-name-nondirectory command) nil command args)))
288 ;; `start-process' can't deal with relative filenames.
289 (append (list (expand-file-name command)) args))))
290 (eshell-record-process-object proc) 289 (eshell-record-process-object proc)
291 (set-process-buffer proc (current-buffer)) 290 (set-process-buffer proc (current-buffer))
292 (if (eshell-interactive-output-p) 291 (if (eshell-interactive-output-p)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 0033f2c1700..07154b57f20 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -4623,8 +4623,10 @@ Only works for Bourne-like shells."
4623(defun tramp-eshell-directory-change () 4623(defun tramp-eshell-directory-change ()
4624 "Set `eshell-path-env' to $PATH of the host related to `default-directory'." 4624 "Set `eshell-path-env' to $PATH of the host related to `default-directory'."
4625 ;; Remove last element of `(exec-path)', which is `exec-directory'. 4625 ;; Remove last element of `(exec-path)', which is `exec-directory'.
4626 ;; Use `path-separator' as it does eshell.
4626 (setq eshell-path-env 4627 (setq eshell-path-env
4627 (mapconcat 'identity (butlast (tramp-compat-exec-path)) ":"))) 4628 (mapconcat
4629 'identity (butlast (tramp-compat-exec-path)) path-separator)))
4628 4630
4629(eval-after-load "esh-util" 4631(eval-after-load "esh-util"
4630 '(progn 4632 '(progn