From owner-freebsd-bugs Sat Aug 3 0:50: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EF1137B400 for ; Sat, 3 Aug 2002 00:50:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF56743E65 for ; Sat, 3 Aug 2002 00:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g737o1JU009824 for ; Sat, 3 Aug 2002 00:50:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g737o1U1009823; Sat, 3 Aug 2002 00:50:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56E0437B400 for ; Sat, 3 Aug 2002 00:47:16 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CF1143E3B for ; Sat, 3 Aug 2002 00:47:16 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g737lFOT034346 for ; Sat, 3 Aug 2002 00:47:15 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g737lFag034345; Sat, 3 Aug 2002 00:47:15 -0700 (PDT) Message-Id: <200208030747.g737lFag034345@www.freebsd.org> Date: Sat, 3 Aug 2002 00:47:15 -0700 (PDT) From: Michael Heitmeier To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/41278: incorrect wc documentation 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 >Number: 41278 >Category: misc >Synopsis: incorrect wc documentation >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: Sat Aug 03 00:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Michael Heitmeier >Release: 4.6 >Organization: just me >Environment: 4.6-release >Description: man wc incorrectly states that the output of wc is equivalent to the options -clw, when in fact the output of wc is the same as wc -lwc >How-To-Repeat: read man wc and memorize the sequence of the options shown there, then run wc on a small text file with a known number of lines and compare the output against the sequence as given in man. >Fix: Change man wc to list the sequence -lwc in the synopsis and the description. I would suggest that the sequence lines, words, bytes (lwc) is anyway the most intuitive as the resulting numbers increase from left to right for all but the smallest files, making it easy to know what one is looking at. It is therefore suggested to change the man page, rather than the code. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message