Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2002 00:47:15 -0700 (PDT)
From:      Michael Heitmeier <mheitmeier@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/41278: incorrect wc documentation
Message-ID:  <200208030747.g737lFag034345@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208030747.g737lFag034345>