[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wc command
Re: wc command
Wed, 17 Dec 2008 06:03:29 -0700
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20081105 Thunderbird/22.214.171.124 Mnenhy/0.7.5.666
-----BEGIN PGP SIGNED MESSAGE-----
According to chakrapani.chittabathina on 12/17/2008 1:06 AM:
> Bug : when i am using "wc" command, i've entered only wc without any
> option and file name even, acidently, then it didn't give any error
> report, even not giving help info.
This is not a bug, but expected behavior. When you don't provide any
arguments, wc acts as a filter, and counts the words input on stdin. In
your case, stdin is the terminal where you entered the command, so wc is
now waiting for you to type words, followed by the terminal's end-of-file
sequence (typically Ctrl-D). This applies not only to wc, but to many of
the coreutils; it sounds like you are a bit unfamiliar with the Unix
paradigm of tools that act as filters when not given a file name to act upon.
> And, i found one thing about CentOS, it is little bit slow compare to
> windows which is running in he same hardware.
That would be an issue with CentOS, not coreutils. In turn, Windows is
very slow compared to Linux running in the same hardware, not to mention
that GNU/Linux systems give you more freedoms than a proprietary OS.
> DISCLAIMER: The information in this message is confidential
As a note of netiquette, these sorts of disclaimers are unenforceable on
publicly archived mailing lists. However, some people refuse to reply to
mail where a trailer like this has been inserted. Therefore, you may want
to consider using a different account when mailing bug reports.
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
- wc command, chakrapani.chittabathina, 2008/12/17
- Re: wc command,
Eric Blake <=
- Re: wc command, Pádraig Brady, 2008/12/17