From gjm11@dpmms.cam.ac.uk  Mon Mar  2 11:01:51 1998
Received: from lilac.csi.cam.ac.uk (exim@lilac.csi.cam.ac.uk [131.111.8.44])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA22880
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 2 Mar 1998 11:01:43 -0800 (PST)
          (envelope-from gjm11@dpmms.cam.ac.uk)
Received: from g.pet.cam.ac.uk [131.111.209.233] 
	by lilac.csi.cam.ac.uk with smtp (Exim 1.82 #1)
	id 0y9aSv-0003xn-00; Mon, 2 Mar 1998 19:01:29 +0000
Received: from gjm11 by g.pet.cam.ac.uk with local (Exim 1.73 #1)
	id 0y9aSu-000198-00; Mon, 2 Mar 1998 19:01:28 +0000
Message-Id: <E0y9aSu-000198-00@g.pet.cam.ac.uk>
Date: Mon, 2 Mar 1998 19:01:28 +0000
From: gjm11@dpmms.cam.ac.uk
Reply-To: gjm11@dpmms.cam.ac.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: new version of `fmt'
X-Send-Pr-Version: 3.2

>Number:         5901
>Category:       bin
>Synopsis:       new version of `fmt'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar  2 11:10:01 PST 1998
>Closed-Date:    Wed Jun 6 03:17:58 PDT 2001
>Last-Modified:  Wed Jun 06 03:18:47 PDT 2001
>Originator:     Gareth McCaughan
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
... would probably be a good idea
>Environment:

	FreeBSD 2.2.5-RELEASE

>Description:

	Way back when, after submitting a few fixes to the `fmt'
	program, I mentioned that I had a drop-in replacement
	with more features and fewer bugs. (This was in discussion
	of PR bin/4520.) I have finally got round to tidying it up
	enough that I don't mind the rest of the world seeing it.

	`Drop-in' is perhaps a slight exaggeration; the existing
	`fmt' gets so many things wrong that it didn't seem sensible
	to try to be exactly equivalent.

	My proposed new version of `fmt' may be found at

		ftp://g.pet.cam.ac.uk/pub/software/fmt.tar.gz

	which is a gzipped tarchive containing the source code
	(`fmt.c') and a replacement manpage (`fmt.1').

	A brief account of user-visible differences from the old
	`fmt':

	1. There are many extra options. Options that aren't
	   understood generate a helpful usage message, instead
	   of being treated as filenames.

	2. My `fmt' doesn't by default attempt to do anything
	   special with mail message headers. (But a new option
	   makes it handle them much better than old `fmt'.)

	3. There are fewer bugs. (I haven't noticed any yet...)

	4. My `fmt' needs a special flag to make it understand
	   indented paragraphs (i.e., those whose first lines
	   are differently indented from subsequent lines). The
	   old `fmt' didn't, but its actual behaviour in the
	   presence of varying indentation left much to be desired.

	5. My `fmt' doesn't convert spaces into tabs at the starts
	   of lines unless you specifically ask it to.

	6. A few other inconspicious things have been changed. You
	   won't notice. :-)

	If these incompatibilities are not sufficient to make it
	unwise to replace the old `fmt' with mine (and the discussion
	I had with Joerg following on from bin/4520 suggests that
	they aren't) then I suggest that this replacement be
	carried out in -current.

	I remark in passing that the `fmt' in the GNU textutils is
	even better, but of course it's GPLed...

>How-To-Repeat:

	N/A

>Fix:
	
	N/A

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Wed Jun 6 03:17:58 PDT 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=5901 
>Unformatted:
