On Fri, Jun 22, 2018 at 4:06 PM Rob Landley wrote:
>
> On 06/22/2018 03:24 PM, enh wrote:
> >‘fmt’ prefers breaking lines at the end of a sentence, and tries to
> > avoid line breaks after the first word of a sentence or before the last
> > word of a sentence. A “sentence break” is defined as
On 06/22/2018 03:24 PM, enh wrote:
>‘fmt’ prefers breaking lines at the end of a sentence, and tries to
> avoid line breaks after the first word of a sentence or before the last
> word of a sentence. A “sentence break” is defined as either the end of
> a paragraph or a word ending in any of ‘.
On Wed, Jun 20, 2018 at 10:30 PM Rob Landley wrote:
>
> So I redid fmt.c and think it's ready to promote, but now I'm tweaking it to
> pass the fmt tests and... making them match what ubuntu's doing exactly is
> weird?
>
> $ echo -e 'hello world\n this is some text' | fmt -w 10
> hello
> world
>
So I redid fmt.c and think it's ready to promote, but now I'm tweaking it to
pass the fmt tests and... making them match what ubuntu's doing exactly is
weird?
$ echo -e 'hello world\n this is some text' | fmt -w 10
hello
world
this
is some
text
$ echo -e 'hello world\n this is some text' | ./f