[Toybox] Did you know the gnu/dammit find's man page lies?

enh enh at google.com
Wed Jun 5 23:02:23 PDT 2019


like i said, it was their documentation that convinced me that they
didn't support width/precision...

(though i accept your argument that even if that were true, that
doesn't mean we shouldn't be more consistent. thanks for fixing that!)

On Tue, May 28, 2019 at 6:46 PM Rob Landley <rob at landley.net> wrote:
>
> The man page says:
>
>               %t     File's last modification time in the format  returned  by
>                      the C `ctime' function.
>
>
>   $ ./find README -printf %t
>   Sat Dec 15 19:45:11 2018
>   $ find README -printf %t
>   Sat Dec 15 19:45:11.9607922010 2018
>
> You can't get nanoseconds from ctime() if its argument is a time_t pointer. (Why
> is it a pointer? Why not just the value? Who knows?)
>
> And amazingly, ctime_r does _not_ take a struct timespec *.
>
> So they reimplemented basic libc functions in their command, to add a fairly
> obscure sub-option.
>
> <jazzhands />
>
> Rob
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net



More information about the Toybox mailing list