]> git.eshelyaron.com Git - emacs.git/commit
Return a list of numbers if all lines of an Eshell subcommand are numeric
authorJim Porter <jporterbugs@gmail.com>
Mon, 2 May 2022 05:09:17 +0000 (22:09 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 3 May 2022 16:23:00 +0000 (18:23 +0200)
commit06423b5d1e05d524e8e745f071cbb691b446efd2
tree5113c5246b116a61c07261b7a28908683833df9e
parentf7a82699d6e854c2920f7c090fb8df7a3e012a4d
Return a list of numbers if all lines of an Eshell subcommand are numeric

* lisp/eshell/esh-util.el (eshell-convertible-to-number-p)
(eshell-convert-to-number): New functions...
(eshell-convert): ... use them.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/interp-convert-cmd-string-newline): Add checks for
numeric output.

* doc/misc/eshell.texi (Dollars Expansion): Document the new behavior.

* etc/NEWS: Announce the change (bug#55236).
doc/misc/eshell.texi
etc/NEWS
lisp/eshell/esh-util.el
test/lisp/eshell/esh-var-tests.el