]> git.eshelyaron.com Git - emacs.git/commit
Allow using dollar expansions in Eshell conditionals
authorJim Porter <jporterbugs@gmail.com>
Tue, 9 Aug 2022 04:24:27 +0000 (21:24 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sat, 13 Aug 2022 05:07:13 +0000 (22:07 -0700)
commit9d4fa4ed4b1f2b081e8ed14cbe16d9ec4b993988
tree2831401200113ed59e4ebb1385f99ca612c0c73c
parent30320d9420b2850341e94fa1b10476344bfa9589
Allow using dollar expansions in Eshell conditionals

* lisp/eshell/esh-cmd.el (eshell-structure-basic-command): Forms
beginning with 'eshell-escape-arg' are "data-wise".

* test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/while-loop)
(esh-cmd-test/until-loop, esh-cmd-test/if-statement)
(esh-cmd-test/if-else-statement, esh-cmd-test/unless-statement)
(esh-cmd-test/unless-else-statement): Use variable interpolation.
(esh-cmd-test/while-loop-ext-cmd, esh-cmd-test/until-loop-ext-cmd)
(esh-cmd-test/if-else-statement-ext-cmd)
(esh-cmd-test/unless-else-statement-ext-cmd): New tests, adapted from
the existing ones.

* doc/misc/eshell.texi (Control Flow): Update documentation for
conditionals (bug#57129).
doc/misc/eshell.texi
lisp/eshell/esh-cmd.el
test/lisp/eshell/esh-cmd-tests.el