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

Samuel Holland samuel at sholland.org
Wed Aug 29 17:28:31 PDT 2018


On 08/29/18 19:11, haroon maqsood wrote:
> Test 1: Agreed (thanks for pointing out i missed it) i'll remove it.
> Test 2: IMO as adding d breaks the spec by not outputting the new line after
> space, gnu is wrong here.
> Test 3: then why not stat the files or check by any other way that they are only
> regular files? IMO this should be a normal case that it makes width  match so
> new line is due.

It *is* a regular file, but it's not a *text* file. Being a text file depends on
the contents of the file, such as it can't contain NUL characters and must end
with a newline character.

Samuel


More information about the Toybox mailing list