diff options
author | Jim Porter <jporterbugs@gmail.com> | 2022-02-28 09:31:22 -0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-03-01 15:01:16 +0200 |
commit | 9e257aecc9a3456fb3d66596862d44030f7d76c8 (patch) | |
tree | e75ed62ca34294c908071701b14d089c50c256bd /test/lisp/eshell/eshell-tests.el | |
parent | b8bc359bbfd36b3e281bdcba154ed74ca897d850 (diff) | |
download | emacs-9e257aecc9a3456fb3d66596862d44030f7d76c8.tar.gz emacs-9e257aecc9a3456fb3d66596862d44030f7d76c8.tar.bz2 emacs-9e257aecc9a3456fb3d66596862d44030f7d76c8.zip |
Partially revert b03f74e0f2a578b1580e8b1c368665850ee7f808
That commit regressed '$<command>' forms in Eshell, due to a
limitation/bug in how 'eshell-do-eval' works. This fixes
bug#54190.
* lisp/eshell/esh-var.el (eshell-parse-variable-ref): Quote a lambda.
* test/lisp/eshell/eshell-tests.el (eshell-test/interp-temp-cmd):
New test.
Diffstat (limited to 'test/lisp/eshell/eshell-tests.el')
-rw-r--r-- | test/lisp/eshell/eshell-tests.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el index a9b1e2ab4e8..fe4fba294fd 100644 --- a/test/lisp/eshell/eshell-tests.el +++ b/test/lisp/eshell/eshell-tests.el @@ -130,6 +130,10 @@ e.g. \"{(+ 1 2)} 3\" => 3" "Interpolate Lisp form evaluation" (should (equal (eshell-test-command-result "+ $(+ 1 2) 3") 6))) +(ert-deftest eshell-test/interp-temp-cmd () + "Interpolate command result redirected to temp file" + (should (equal (eshell-test-command-result "cat $<echo hi>") "hi"))) + (ert-deftest eshell-test/interp-concat () "Interpolate and concat command" (should (equal (eshell-test-command-result "+ ${+ 1 2}3 3") 36))) |