OSDN Git Service

ls -h support.
authorElliott Hughes <enh@google.com>
Sat, 5 Sep 2015 10:09:22 +0000 (05:09 -0500)
committerRob Landley <rob@landley.net>
Sat, 5 Sep 2015 10:09:22 +0000 (05:09 -0500)
commit091997e4c6f5655876a3133ae80b52c2d91a8216
treec7c22a5e6f012c318e182b0ce884540b197393f9
parentc82343fe0bb293d3ed60b9122426f0bbcb0e58b0
ls -h support.

It turns out that people are anticipating the switch to toybox ls from
toolbox ls on the assumption that this will finally bring -h support.
Let's not disappoint.

I've merged two existing buffers in listfiles whose uses didn't
overlap into one. It may be possible to cram this into toybuf with the
other stuff, but it didn't seem worth the extra complexity for 64B of
stack, especially since we were already living with that for time
formatting anyway.
toys/posix/ls.c