Fix redirecting Eshell output to symbols in some places
authorJim Porter <jporterbugs@gmail.com>
Thu, 29 Aug 2024 01:53:03 +0000 (18:53 -0700)
committerJim Porter <jporterbugs@gmail.com>
Fri, 30 Aug 2024 04:51:25 +0000 (21:51 -0700)
commit4af1dc83ae8857665162dc4dd05cb5a46e2f9449
treecb135bf26ee87b837270f6bfd18ad7c9f110a941
parenta0f740c88d88fdd64738518d030951cd336327c7
Fix redirecting Eshell output to symbols in some places

Do not merge to master.

* lisp/eshell/esh-io.el (eshell-output-object-to-target): Don't require
TARGET to be bound.

* lisp/eshell/em-script.el (eshell-execute-file): Quote the output/error
targets.

* test/lisp/eshell/em-script-tests.el (eshell-execute-file-output): New
variable.
(em-script-test/execute-file/output-file)
(em-script-test/execute-file/output-symbol): New tests.

* test/lisp/eshell/esh-io-tests.el (eshell-test-file-string): Move to...
* test/lisp/eshell/eshell-tests-helpers.el (eshell-test-file-string):
... here.
lisp/eshell/em-script.el
lisp/eshell/esh-io.el
test/lisp/eshell/em-script-tests.el
test/lisp/eshell/esh-io-tests.el
test/lisp/eshell/eshell-tests-helpers.el