[Toybox] [PATCH] find: add -printf support.

Rob Landley rob at landley.net
Sat May 25 20:01:40 PDT 2019


On 5/24/19 6:06 PM, enh via Toybox wrote:
> This only implements the format specifiers that I've seen used in the
> wild (which is actually a significant fraction of the total supported by
> findutils' find). The most obvious gap is in the time support. I'm happy
> to add more, but didn't want to add stuff "just because".

Is %P safe in the case of:

  ./toybox find README -printf '%P\n'

Because there's no trailing / there but we advance past one anyway. (It _seems_
to work but I has a nervous...)

Nevermind, working on it...

Rob


More information about the Toybox mailing list