]> git.eshelyaron.com Git - emacs.git/commit
Fix Eshell dollar interpolation inside of double-quotes
authorJim Porter <jporterbugs@gmail.com>
Mon, 28 Feb 2022 05:04:30 +0000 (21:04 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Mar 2022 13:59:33 +0000 (14:59 +0100)
commitcccee7e840102488e01f9bb7c2220392d358f4f0
tree1077dd929cf7908fd8c76b63d135b6fe1834bb60
parentae1acb601764009fc2551819f9193aa6e9441be4
Fix Eshell dollar interpolation inside of double-quotes

For example,

  echo "${echo hi}"

previously tried to run the program named 'echo hi', instead of 'echo'
with the argument 'hi'.

* lisp/eshell/esh-arg.el (eshell-parse-inner-double-quote):
New function.

* lisp/eshell/esh-var.el (eshell-parse-variable-ref): Support parsing
when wrapped in double-quiotes.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var)
(esh-var-test/interp-quoted-var)
(esh-var-test/interp-quoted-var-concat)
(esh-var-test/quoted-interp-var)
(esh-var-test/quoted-interp-quoted-var)
(esh-var-test/quoted-interp-lisp, esh-var-test/quoted-interp-cmd)
(esh-var-test/quoted-interp-temp-cmd): New tests.
lisp/eshell/esh-arg.el
lisp/eshell/esh-var.el
test/lisp/eshell/esh-var-tests.el