bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wc command


From: Eric Blake
Subject: Re: wc command
Date: Mon, 22 Dec 2008 05:42:59 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Andrew McGill on 12/22/2008 1:38 AM:
> My guess is that while it would be friendly to provide a similar message for 
> wc (od, head, tail, etc), it would violate something posixy (and is therefore 
> imposixable).

It would be possible to add a conditional check, where if POSIXLY_CORRECT
is not defined in the environment and a filter app is started with a tty
as stdin and stderr (ie. the same criteria for what POSIX requires bash to
use for whether a shell is interactive), then we issue a warning to
stderr.  Normally, we don't like adding additional uses of
POSIXLY_CORRECT, but this particular idea may help stave off confusion.
Care to write such a patch?  It would need to be applied to all of the
coreutils that can act as a filter, not just wc.

- --
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

iEYEARECAAYFAklPi1MACgkQ84KuGfSFAYByYwCgqHyUBPnRAqSPYfQyNrBZjrzl
NJcAn3JaPCFLPzCCzIEz8hmxipi7gfmq
=9hvy
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]