Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 02:20:01 -0700 (PDT)
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13364: Patch to wc(1) for Unix 98 compliance. 
Message-ID:  <199908250920.CAA22847@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13364; it has been noted by GNATS.

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: howardjp@wam.umd.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13364: Patch to wc(1) for Unix 98 compliance. 
Date: Wed, 25 Aug 1999 11:11:41 +0200

 On Tue, 24 Aug 1999 22:42:13 -0400, James Howard wrote:
 
 > ! .Nd word, line, and byte count
 > ! .Nd word, line, byte, and character count
 
 Since the manpage is read in the context of FreeBSD, the distinction
 between bytes and characters is weird. I'd leave that change out.
 
 > + .It Fl m
 > + The number of characters in each input file
 > + is written to the standard output.
 
 The same reasoing applies here. I'd say
 
 .It Fl m
 Identical to -c, for compatibility with systems which distinguish
 between bytes and characters.
 
 While your change is cool now, you're putting worms in a can that
 someone's going to have to open up one day when we use two-byte
 characters. :)
 
 > + If 
 > + .Fl c 
 > + and 
 > + .Fl m
 > + are both specified, the information is given only once.
 
 With the change of wording I've suggested above, this text is probably
 unnecessary and certainly confusing.
 
 > + 		case 'm':
 > + 			/*
 > + 			 * Unix 98 demands that wc accept a -m argument
 
 Far too respectful towards the OpenGroup spec. ;-)
 
 		case 'm':	/* Unix 98 compatibility option */
 			/* FALLTHROUGH */
 
 If you don't like the side-by-side comment, there seems to be a healthy
 precedent in the source tree for having the comment immediately _above_
 the case line.
 
 Later,
 Sheldon.
 


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?199908250920.CAA22847>