]> git.eshelyaron.com Git - emacs.git/commit
Allow splitting strings in Eshell expansions with "plain" strings
authorJim Porter <jporterbugs@gmail.com>
Wed, 2 Mar 2022 02:53:42 +0000 (18:53 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Mar 2022 13:59:33 +0000 (14:59 +0100)
commitd72cd4a2b761d325e5bb3e664781a4c9001eb2c2
tree7d59b1ede2b3c9620d4b07b7df8c557497d3dc29
parent990f36fa108092c8b93692bb80c6fbd0b6b8f391
Allow splitting strings in Eshell expansions with "plain" strings

Since '$var[hello 0]' doesn't make sense when 'var' is a string, the
previous restriction was unnecessary.

* lisp/eshell/esh-var.el (Commentary): Update documentation.
(eshell-apply-indices): Allow "plain" strings to split strings.

* test/lisp/eshell/esh-var-test.el
(esh-var-test/interp-var-string-split-indices)
(esh-var-test/quoted-interp-var-string-split-indices): Update tests.

* doc/misc/eshell.texi (Dollars expansion): Update documentation.
doc/misc/eshell.texi
lisp/eshell/esh-var.el
test/lisp/eshell/esh-var-tests.el