From nobody@FreeBSD.ORG  Tue Jun  6 13:53:22 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 299F437B61F; Tue,  6 Jun 2000 13:53:22 -0700 (PDT)
Message-Id: <20000606205322.299F437B61F@hub.freebsd.org>
Date: Tue,  6 Jun 2000 13:53:22 -0700 (PDT)
From: kannanv@research.bell-labs.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: fmt not folding very long lines
X-Send-Pr-Version: www-1.0

>Number:         19071
>Category:       bin
>Synopsis:       fmt not folding very long lines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 06 14:00:01 PDT 2000
>Closed-Date:    Wed Jun 6 03:22:36 PDT 2001
>Last-Modified:  Wed Jun 06 03:24:15 PDT 2001
>Originator:     Kannan Varadhan
>Release:        3.4-STABLE
>Organization:
Bell Labs
>Environment:
FreeBSD cubs.mlb.research.bell-labs.com 3.4-STABLE FreeBSD 3.4-STABLE #0: Tue Feb  8 10:56:14 EST 2000     root@cubs.mlb.research.bell-labs.com:/usr/src/sys/compile/MH2A235  i386

>Description:
Given a file containing a very long line as:

$ cat foo
./config ./keys inside/org/113440/reports/index.html outside/org/113440/index.html outside/user/girishc/index.html outside/user/girishc/no outside/user/karaul/index.html outside/user/kvaradhan/index.html outside/user/kvaradhan/doc/index.html outside/user/kvaradhan/doc/dynamics/index.html outside/user/kvaradhan/doc/oscillations/index.html outside/user/kvaradhan/doc/rs_design/index.html outside/user/kvaradhan/doc/thesis/index.html outside/user/murakami/index.html
$ fmt < foo
./config ./keys inside/org/113440/reports/index.html outside/org/113440/index.html outside/user/girishc/index.html outside/user/girishc/no outside/user/karaul/index.html outside/user/kvaradhan/index.html outside/user/kvaradhan/doc/index.html outside/user/kvaradhan/doc/dynamics/index.html outside/user/kvaradhan/doc/oscillations/index.html outside/user/kvaradhan/doc/rs_design/index.html outside/user/kvaradhan/doc/thesis/index.html outside/user/murakami/index.html


Notice that fmt did not fold the lines to within 65-75 columns as is 
documented.

fmt version (by grepping the binary) is:
$FreeBSD: src/usr.bin/fmt/fmt.c,v 1.11.2.1 1999/08/29 15:28:00 peter Exp $

>How-To-Repeat:
As above.

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: phk 
Responsible-Changed-When: Sat Jun 2 01:36:19 PDT 2001 
Responsible-Changed-Why:  
I belive that fmt does what it should.  Lines starting with a '.' or a 
known mail header it will not format. 

Assign this to ru@ in a blatant attempt to get him to improve the docs. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19071 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Wed Jun 6 03:22:36 PDT 2001 
State-Changed-Why:  
The bug of not formatting lines starting with the dot (`.') 
character has been fixed in the new version of the fmt(1) 
utility.  MFC into 4.3-STABLE is planned within two weeks. 

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