-----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             [email protected]
-----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-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to