diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2018-09-06 12:16:00 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2018-09-06 12:16:00 +0200 |
commit | bca35315e16cb53415649e5c0ac2ec0cc1368679 (patch) | |
tree | 1f14f3e4598f6ea3db33356c064488057e7573f0 /lisp/eshell | |
parent | 79d7138c187a5a950e4d226de333db6404700332 (diff) | |
download | emacs-bca35315e16cb53415649e5c0ac2ec0cc1368679.tar.gz emacs-bca35315e16cb53415649e5c0ac2ec0cc1368679.tar.bz2 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)
Diffstat (limited to 'lisp/eshell')
-rw-r--r-- | lisp/eshell/esh-proc.el | 7 |
1 files changed, 3 insertions, 4 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'." (let ((process-connection-type (unless (eshell-needs-pipe-p command) process-connection-type)) - (command (file-local-name command))) + ;; `start-process' can't deal with relative filenames. + (command (file-local-name (expand-file-name command)))) (apply 'start-file-process - (file-name-nondirectory command) nil - ;; `start-process' can't deal with relative filenames. - (append (list (expand-file-name command)) args)))) + (file-name-nondirectory command) nil command args))) (eshell-record-process-object proc) (set-process-buffer proc (current-buffer)) (if (eshell-interactive-output-p) |