]> git.eshelyaron.com Git - emacs.git/commit
Support expanding Eshell globs for remote file names
authorJim Porter <jporterbugs@gmail.com>
Wed, 6 Mar 2024 21:27:07 +0000 (13:27 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:15:30 +0000 (10:15 +0100)
commit3e894593487892e72f419a6c78235e007c933dc4
treeb3f9f48d18cd46e0d34d77a29b986b4627ac7c0d
parentc82101765b1a4cdd9c9f3afd7ee59680c2d01399
Support expanding Eshell globs for remote file names

* lisp/eshell/em-glob.el (eshell-glob-chars-regexp): New function...
(eshell-glob-regexp): ... use it.
(eshell-glob-p): New function...
(eshell-glob-convert): ... use it, and return the deepest start
directory possible.

* lisp/eshell/esh-util.el (eshell-split-path): Rename to...
(eshell-split-path): ... this, and account for remote file names.

* test/lisp/eshell/em-glob-tests.el
(em-glob-test/convert/current-start-directory)
(em-glob-test/convert/relative-start-directory)
(em-glob-test/convert/absolute-start-directory)
(em-glob-test/convert/remote-start-directory): New tests (bug#69592).

(cherry picked from commit e42f14f0e034d0b20c6b9fd0fea23686699e7df0)
lisp/eshell/em-glob.el
lisp/eshell/esh-util.el
test/lisp/eshell/em-glob-tests.el