]> git.eshelyaron.com Git - emacs.git/commit
Fix Eshell handling of remote files like "/ssh:remote:~/file.txt"
authorJim Porter <jporterbugs@gmail.com>
Sun, 5 May 2024 20:09:08 +0000 (13:09 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:56:04 +0000 (18:56 +0200)
commitbea32a79f6409cb878e3d7e7efc1e783bc181fcb
tree9e0c0929b9eb3a3bf373aaf1b99d292511f76117
parent24e24cf5ac92fb175211dcf894aaded735426c9b
Fix Eshell handling of remote files like "/ssh:remote:~/file.txt"

* lisp/eshell/em-glob.el (eshell-glob-convert): Use 'concat' instead of
'file-name-concat' to avoid extraneous slashes.
(eshell-extended-glob): Bail out if we didn't find a glob after all.

* test/lisp/eshell/em-glob-tests.el (tramp): Require.
(em-glob-test/convert/remote-start-directory): Use the mock remote
connection.
(em-glob-test/remote-user-directory): New test.

(cherry picked from commit 1529ad0315f8d4a96ca07969c1c91c1c50bb6075)
lisp/eshell/em-glob.el
test/lisp/eshell/em-glob-tests.el