]> git.eshelyaron.com Git - emacs.git/commit
Fix error when splicing Eshell globs and a glob expands to itself
authorJim Porter <jporterbugs@gmail.com>
Tue, 22 Oct 2024 16:43:00 +0000 (09:43 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Oct 2024 05:05:34 +0000 (07:05 +0200)
commit61ced3cafda493cf2815500ee7c656e5318e7e21
tree1e8292c28f14bb891494e5a08011bc3d981d347c
parent92243cf0cc8163778f0c365845dcb598dd7f9725
Fix error when splicing Eshell globs and a glob expands to itself

This could happen when 'eshell-extended-glob' determines that a "glob"
is not really a glob.  This mainly happens for remote file names with a
"~" in them, like "/ssh:remote:~/file.txt".

* lisp/eshell/em-glob.el (eshell-extended-glob): Return a list when
'eshell-glob-splice-results' is non-nil.
* test/lisp/eshell/em-glob-tests.el
(em-glob-test/expand/splice-results)
em-glob-test/expand/no-splice-results): Extend tests.

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