]> git.eshelyaron.com Git - emacs.git/commit
Support applying indices to more Eshell dollar expansions
authorJim Porter <jporterbugs@gmail.com>
Sat, 5 Mar 2022 19:45:49 +0000 (11:45 -0800)
committerEli Zaretskii <eliz@gnu.org>
Tue, 8 Mar 2022 13:55:41 +0000 (15:55 +0200)
commit6dc51d4cca3a0507d4212616ce1b24147dee54cb
treeff2851ee5a1e38a1789866ae47f55cb59f58775f
parent58568033f4b648e0dc8d9d893ef2197aded0a69e
Support applying indices to more Eshell dollar expansions

For example, '${echo -e "hi\nbye"}[1]' should expand to "bye".

* lisp/eshell/esh-var.el (eshell-parse-variable-ref): Support applying
indices to '${}', '$()', and '$<>' forms.
(Bug#54227)

* lisp/eshell/esh-var-tests.el (esh-var-test/interp-lisp-indices)
(esh-var-test/interp-cmd-indices)
(esh-var-test/interp-cmd-external-indices)
(esh-var-test/quoted-interp-lisp-indices)
(esh-var-test/quoted-interp-cmd-indices): New tests.
lisp/eshell/esh-var.el
test/lisp/eshell/esh-var-tests.el