From owner-freebsd-bugs Sat Nov 10 19:20: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5702337B41B for ; Sat, 10 Nov 2001 19:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAB3K2I05865; Sat, 10 Nov 2001 19:20:02 -0800 (PST) (envelope-from gnats) Date: Sat, 10 Nov 2001 19:20:02 -0800 (PST) Message-Id: <200111110320.fAB3K2I05865@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: charon@labs.gr Subject: Re: bin/31392: fmt(1) does format nroff source ... Reply-To: charon@labs.gr Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/31392; it has been noted by GNATS. From: charon@labs.gr To: freebsd-gnats-submit@FreeBSD.org, kurt@boolean.net Cc: Subject: Re: bin/31392: fmt(1) does format nroff source ... Date: Sun, 11 Nov 2001 05:11:05 +0200 (EET) > Description > > fmt(1) provided with 4.4 does not recongize nroff directives > and treats lines containing them as regular text. Previous > versions previously recongized nroff directives and only > formatted text outside of these directives. > > How-To-Repeat > > fmt < .ti 0 > fmt should produce two lines, not one. > EOF The rewrite of fmt(1) at revision 1.12 -> 1.13 of fmt.c behaves differently, but this is not really a bug. The new fmt(1) tries to fill as much of the input line as possible before sending it to the output stream, while the former fmt(1) implementation copied '\n' to it's output unchanged, thus keeping the lines that are shorter than the `goal length' to their original length. I'm not sure if the original behavior was more `correct' or more `wrong' in some sense, but this is definitely a change in behavior. I tested fmt from RELENG_4_3_0_RELEASE today, and fmt of -CURRENT and they do behave differently :-/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message