[Toybox] [PENDING] [fold.c] [Question]

enh enh at google.com
Wed Aug 29 16:11:21 PDT 2018


On Wed, Aug 29, 2018 at 3:58 PM Rob Landley <rob at landley.net> wrote:

> On 08/29/2018 05:28 PM, haroon maqsood wrote:
> > Sorry My mistake (again), this is the complete file.
>
> Yay tests. Applied, since any tests are better than none.
>
> Although I note that:
>
>   TEST_HOST=1 make test_fold
>
> Produces failures. You might want to try:
>
>   VERBOSE=fail TEST_HOST=1 make test_fold
>
> Also, checking my notes, I'm not sure off the top of my head what the
> difference
> between "fold" and "fmt" is? There's a promoted fmt command (from the
> android
> guys I think), but fold is posix. Looks like they do kind of similar
> things?
>

similar, but "fmt" is more human-friendly. it breaks at word boundaries and
pays attention to "margins" (by duplicating initial indentation).

fold is so unfriendly that i've never seen it used in real life.


> Rob
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20180829/e5650dc6/attachment.html>


More information about the Toybox mailing list