From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 19 Oct 2009 12:43:11 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] fmt(1) standard behaviour Topicbox-Message-UUID: 8a649c1e-ead5-11e9-9d60-3106f5b1d025 the reason is that the algorithm is simpler if fmt reads all the words and then formats them. if you could modify the source in a simple way to make it incremental (for instance by flushing the words at the end of each paragraph) i imagine the patch might be accepted. 2009/10/18 Rudolf Sykora : > I may not fully understand the problem, but wouldn't it be just fine > if fmt output anything it can already output? > I.e., filled lines are output, on encountering '\n' the (generally > unfilled) line is output... > (Or what is the reason that fmt waits for EOF?) > > R