[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diff user messages to stderr enhancement ?
From: |
Eric Blake |
Subject: |
Re: diff user messages to stderr enhancement ? |
Date: |
Fri, 30 Nov 2007 08:50:56 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Heiko Voigt on 11/30/2007 8:35 AM:
> Andreas Schwab wrote:
>> $ diff ... | grep -v ^O
>>
> Thats of course working as well, but its just not feeling "clean". I
> quite like the philosophy that user information (errors, etc., which is
> the case here) go to stderr. Isn't that the general consent in POSIX
> environments? I don't see the drawback of writing to stderr. Should any
> tool be expecting that information?
Yes, they should be expecting it, because it is required by POSIX:
http://www.opengroup.org/onlinepubs/009695399/utilities/diff.html
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHUDFf84KuGfSFAYARArDZAJ4ti1PP5c11lNs3RxJqCqpUpl49QQCgu9Gk
MOBBRByAWZselVhYEXcives=
=nx/b
-----END PGP SIGNATURE-----