home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!cis.ohio-state.edu!airs.COM!ian
- From: ian@airs.COM (Ian Lance Taylor)
- Subject: Re: GNU `wc -c' optimization
- Message-ID: <9209080501.AA15291@comton.airs.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- References: <GUMBY.92Sep7064016@Cygnus.COM>
- Distribution: gnu
- Date: Mon, 7 Sep 1992 21:01:55 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 21
-
- gumby@cygnus.com (David V. Henkel-Wallace) writes:
-
- > From: pinard@icule.UUCP (Francois Pinard)
-
- > Using GNU textutils 1.3, I noticed that `wc -c FILE' or `wc -c *'
- > physically reads the file(s). Would not it be better to just stat the
- > file(s) and produce the output quickly in those cases?
-
- >Until wc handles wide characters...
-
- POSIX.2 defines wc -c to output a number of bytes. I doubt that will
- change without adding another option.
-
- Whether the optimization is worth putting in depends on how often
- people use wc -c, I guess.
- --
- Ian Lance Taylor ian@airs.com uunet!airs!ian
- First person to identify this quote wins a free e-mail message:
- ``He caught the lady in this way: so when the lady was running away for her
- life, he hastily ran to her front and stopped her as a log of wood.''
-
-