[PATCH v2 3/3] touch: add --time=what option
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Mon Apr 12 23:01:37 UTC 2021
On Tue, 13 Apr 2021 00:27:50 +0200
Xabier Oneca -- xOneca <xoneca at gmail.com> wrote:
> This option is the long version of -a and -m.
>
> function old new delta
> touch_main 484 539 +55
> .rodata 103649 103680 +31
> static.touch_longopts 49 56 +7
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 3/0 up/down: 93/0) Total: 93 bytes
yep 93b is a bit gross for no sane benefit.
May i suggest to go over just
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/touch.html
(the SUSv4 version) now that you essentially implemented about
everything anyway?
I'd put the susv4 stuff into the base applet and let the long version
of --time alone. It really feels useless, i never used it myself and
never saw any code or script that used it so far.
TIA,
More information about the busybox
mailing list