Re: git: c2d93a803ace - main - env: Check the status of stdout.

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Wed, 09 Oct 2024 13:48:45 UTC
On Wed, Oct 09, 2024 at 03:35:17PM +0200, Olivier Certner wrote:
> Hi,
> 
> > > Could you please point me to the requirement?
> > 
> > General Assertion 39 in the Unix Conformance test suite.  Not sure
> > exactly which part of the standard it maps to.
> 
> While this requirement seems to make sense, I do not remember having ever read something like that in POSIX/SuS.  Searching these documents quickly yesterday, I failed to find anything related to it.
> 
> So I'm interested if any of you has pointers to offer, besides the UNIX conformance test suite.
> 

The closest text I found so far is from

IEEE Std 1003.1™-2024
XCU
1.4 Utility Description Defaults
CONSEQUENCES OF ERRORS

79953  • When an unrecoverable error condition is encountered, the utility shall exit with
79954  an exit status that indicates an error occurred.

79955  • A diagnostic message shall be written to standard error whenever an error
79956  condition occurs.

(the numbers are the total line numbers from the pdf instance of the standard).