From nobody@FreeBSD.org  Sat Aug  3 00:47:16 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 56E0437B400
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <mheitmeier@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: incorrect wc documentation
X-Send-Pr-Version: www-1.0

>Number:         41278
>Category:       misc
>Synopsis:       incorrect wc documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 03 00:50:01 PDT 2002
>Closed-Date:    Mon Aug 05 00:19:54 PDT 2002
>Last-Modified:  Mon Aug 05 00:19:54 PDT 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Aug 5 00:17:51 PDT 2002 
State-Changed-Why:  
The documentation is correct.  "The default action is equivalent 
to specifying all of the flags" that "displays the number of lines, 
words, and bytes". 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41278 
>Unformatted:
