]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#31704
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 6 Sep 2018 10:16:00 +0000 (12:16 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 6 Sep 2018 10:16:00 +0000 (12:16 +0200)
* 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)

lisp/eshell/esh-proc.el
lisp/net/tramp.el

index a7855d81db50bfc5e4feb90980a4702b4d96a9c2..3735f30c3048c8de47af3c69d9f7384e9d8b7f4d 100644 (file)
@@ -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)
index 0033f2c170011b05d36970ef1177be30f3c653af..07154b57f20bb7a2e1ee3410aeaab1a21a1b2ccb 100644 (file)
@@ -4623,8 +4623,10 @@ Only works for Bourne-like shells."
 (defun tramp-eshell-directory-change ()
   "Set `eshell-path-env' to $PATH of the host related to `default-directory'."
   ;; 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)) ":")))
+       (mapconcat
+        'identity (butlast (tramp-compat-exec-path)) path-separator)))
 
 (eval-after-load "esh-util"
   '(progn