The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1500 ====================================================================== Reported By: geoffclare Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1500 Category: Shell and Utilities Type: Clarification Requested Severity: Objection Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section: expr Page Number: 2775 Line Number: 91106 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2021-08-06 13:00 UTC Last Modified: 2021-08-06 13:00 UTC ====================================================================== Summary: expr EXIT STATUS needs some changes Description: The expr utility has a similar problem to the one reported for diff in bug https://austingroupbugs.net/view.php?id=1498.
In addition, exit status 2 should say that it is an error (so that a diagnostic message is required). Desired Action: Change:<blockquote>0 The <i>expression</i> evaluates to neither null nor zero. 1 The <i>expression</i> evaluates to null or zero. 2 Invalid <i>expression</i>. >2 An error occurred.</blockquote>to:<blockquote>0 The <i>expression</i> evaluated to neither null nor zero, and the output specified in STDOUT was successfully written to standard output. 1 The <i>expression</i> evaluated to null or zero, and the output specified in STDOUT was successfully written to standard output. 2 Invalid <i>expression</i> error. >2 Another error occurred.</blockquote> ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2021-08-06 13:00 geoffclare New Issue 2021-08-06 13:00 geoffclare Name => Geoff Clare 2021-08-06 13:00 geoffclare Organization => The Open Group 2021-08-06 13:00 geoffclare Section => expr 2021-08-06 13:00 geoffclare Page Number => 2775 2021-08-06 13:00 geoffclare Line Number => 91106 2021-08-06 13:00 geoffclare Interp Status => --- ======================================================================
