]> git.eshelyaron.com Git - emacs.git/commit
Support "/dev/null" as a target when creating Eshell handles
authorJim Porter <jporterbugs@gmail.com>
Thu, 29 Aug 2024 02:12:29 +0000 (19:12 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:43 +0000 (09:51 +0200)
commit2f908203f37eaece389bc774d37a44fce010386e
tree097154aedb440a0a0fb335b1dc7daaf104f8a916
parentb0283696aad40cc00d2516748c368da75f5dd6dd
Support "/dev/null" as a target when creating Eshell handles

Previously, you could only use this when setting the handle afterwards.

* lisp/eshell/esh-io.el (eshell-set-output-handle): Don't catch
'eshell-null-device' here...
(eshell-get-target): ... catch it here.

* test/lisp/eshell/eshell-tests.el
(eshell-test/eshell-command/output-dev-null): New test (bug#72857).

(cherry picked from commit b6f4ffcc106fdbc21dfea45c75fdc4f217d8f201)
lisp/eshell/esh-io.el
test/lisp/eshell/eshell-tests.el