From owner-freebsd-bugs Tue Jun 6 14: 0: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A2F837BA95 for ; Tue, 6 Jun 2000 14:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA52425; Tue, 6 Jun 2000 14:00:01 -0700 (PDT) (envelope-from gnats@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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/19071: fmt not folding very long lines Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19071 >Category: bin >Synopsis: fmt not folding very long lines >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 06 14:00:01 PDT 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message