]> git.eshelyaron.com Git - emacs.git/commit
Fix eshell "ls" command for files larger than 1TiB
authorStefan Kangas <stefankangas@gmail.com>
Sat, 5 Aug 2023 10:54:26 +0000 (12:54 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 5 Aug 2023 15:57:53 +0000 (17:57 +0200)
commit3b2b0b5f921fd49ef0ac21e1522b0e037b80dffa
treedb4ddb317b83eec1e8af763ecba1583074cf5003
parentee788ab2f81f3a8ad338648c870a8feeb17e192d
Fix eshell "ls" command for files larger than 1TiB

* lisp/eshell/esh-util.el (eshell-printable-size): Fix displaying file
sizes larger than 1 TiB or 1 TB.
* test/lisp/eshell/esh-util-tests.el
(esh-util-test/eshell-printable-size)
(esh-util-test/eshell-printable-size/zero)
(esh-util-test/eshell-printable-size/terabyte)
(esh-util-test/eshell-printable-size/use-colors)
(esh-util-test/eshell-printable-size/block-size)
(esh-util-test/eshell-printable-size/human-readable-arg): New tests.
lisp/eshell/esh-util.el
test/lisp/eshell/esh-util-tests.el