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 <[email protected]> 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
> [email protected]
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to