[PATCH v4] tree: new applet
Kang-Che Sung
explorer09 at gmail.com
Sun May 1 17:40:39 UTC 2022
Hi Roger,
May I suggest you add an option to draw the tree lines using ASCII
characters only, and make the Unicode support optional at build time?
I just feel uncomfortable when I see source code containing embedded UTF-8
characters and the strings have no ASCII alternative.
The DOS tree command has the "/a" option. You know what I mean.
Thank you.
On Sunday, May 1, 2022, Roger Knecht <rknecht at pm.me> wrote:
> Add new applet which resembles the MS-DOS tree program to list
directories and files in a tree structure.
>
> function old new delta
> tree_print - 388 +388
> .rodata 95678 95767 +89
> tree_main - 73 +73
> tree_print_prefix - 28 +28
> packed_usage 34417 34429 +12
> globals - 8 +8
> applet_main 3192 3200 +8
> applet_names 2747 2752 +5
>
------------------------------------------------------------------------------
> (add/remove: 5/0 grow/shrink: 4/0 up/down: 611/0) Total: 611
bytes
>
> Signed-off-by: Roger Knecht <rknecht at pm.me>
> ---
> Changelog:
>
> V4:
> - Rephrase commit message
> - Updated bloatcheck to latest master
>
> V3:
> - Fixed symlink handling
> - Handle multiple directories in command line arguments
> - Extended tests for symlink and multiple directories
> - Reduced size by using libbb functions
>
> V2:
> - Fixed tree help text
> - Reduced size by 644 bytes
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20220502/6e1c76a1/attachment-0001.html>
More information about the busybox
mailing list