]> git.eshelyaron.com Git - emacs.git/commit
Don't add an extraneous slash in remote PATH list in Eshell
authorJim Porter <jporterbugs@gmail.com>
Sun, 27 Aug 2023 19:49:25 +0000 (12:49 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sun, 27 Aug 2023 19:49:25 +0000 (12:49 -0700)
commitbc0426ce8ed7d58eb228ee1c78679db43d4a9cb0
tree180701f44744e13056d44806288befc064371886
parent34f7a47c9ce0581a89b30cc06243788b354f2e7a
Don't add an extraneous slash in remote PATH list in Eshell

Previously, in a remote directory, '(eshell-get-path)' would return a
list of strings like "/ssh:localhost://usr/bin".  While that shouldn't
break most things, it's not strictly correct either.  See bug#65551.

* lisp/eshell/esh-util.el (eshell-get-path): Use 'concat' instead of
'file-name-concat'.

* test/lisp/eshell/esh-util-tests.el: Require 'tramp' and
'eshell-tests-helpers'.
(esh-util-test/path/get, eshell-util-test/path/get-remote): New tests.
lisp/eshell/esh-util.el
test/lisp/eshell/esh-util-tests.el