]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#31704. Do not merge
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 6 Sep 2018 10:16:00 +0000 (12:16 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 29 Dec 2018 10:50:20 +0000 (11:50 +0100)
* 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 94401c5daa5278bfa50d9d5a65643589687ef481..ee74762193d709052c6dd7a65ac7dab982ff6bc6 100644 (file)
@@ -279,11 +279,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 5fa9f9a44d4a20c5e53db1a32581b721ced21f89..aa125cde6d575daf3446240a785d580a290e6846 100644 (file)
@@ -4583,7 +4583,7 @@ Only works for Bourne-like shells."
                (tramp-get-connection-property
                 (tramp-get-connection-process v) "remote-path" nil)
                (tramp-get-connection-property v "remote-path" nil))
-              ":"))
+              path-separator))
          (getenv "PATH"))))
 
 (eval-after-load "esh-util"