]> git.eshelyaron.com Git - emacs.git/commit
Use 'eshell-with-handles' when executing an Eshell file
authorJim Porter <jporterbugs@gmail.com>
Wed, 28 Aug 2024 20:59:04 +0000 (13:59 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:41 +0000 (09:51 +0200)
commit2832bbd8ef9861a302c2c5e7292e850643d32f48
treed7b11636e3fbb0c8fad308d5c14a40414b2ad8cc
parent35262a7cb5dc600b13fbe55c3006c0f3daebdb60
Use 'eshell-with-handles' when executing an Eshell file

This makes sure we close the handles as we should, which is important
for writing the output to an actual file (bug#72857).

* lisp/eshell/em-script.el (esh-cmd): Require this, just to be explicit.
(eshell-execute-file): Use 'eshell-with-handles'.

(cherry picked from commit e97ab1c41332e179939f457cc010a606a5124ff8)
lisp/eshell/em-script.el