|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2707 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2707.
Report 2707 Actions
Problem Report Number 2707 Submitter's Classification Test Suite problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0295 Raised 2020-03-31 08:18 Updated 2020-03-31 10:02 Published 2020-03-31 10:02 Product Standard Commands and Utilities V4 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSC version 5.3.17NW Test Identification test/POSIX.cmd/sed/sed.ex Assertion 101 Specification Shell and Utilities Issue 6 Location in Spec The Open Group Base Specifications Issue 6, specification for "sed - stream editor". Problem Summary The sed test for assertion 101 incorrectly expects an empty stderr, while the standard permits (and
even encourages) it.Problem Text In the VSC5.3.17NW test for the sed utility, Assertion 101 creates a sed script with an unused label.
It then runs a test with the script, and at the end attempts to verify that stderr is empty.
In The Open Group Base Specifications Issue 6, in the specification of the sed utility, it says
"Implementors are encouraged to provide warning messages about labels that are never used or
jumps to labels that do not exist." We are following that advice. The standard further states that
"The standard error shall be used only for diagnostic messages." Such a warning seems clearly to
qualify as a diagnostic message, so we write it to stderr. The test for Assertion 101 (and any other
tests that create sed scripts with unused labels) should not expect stderr to be empty.Test Output 400|0 101 1 15:02:54|IC Start
200|0 101 15:02:54|TP Start
520|0 101 33483 1 1|Assertion #101 (A): Test permitted label length
520|0 101 33483 2 1|Standard error isn't empty
520|0 101 33483 2 2|Contents of out.stderr:
520|0 101 33483 2 3|sed: 6: sed_in_101_1: unused label 'unique_2'
220|0 101 1 15:02:54|FAIL
410|0 101 1 15:02:54|IC EndReview Information
Review Type TSMA Review Start Date 2020-03-31 08:18 Last Updated 2020-03-31 09:48 Completed 2020-03-31 09:48 Status Complete Review Recommendation Permanent Interpretation (PIN) Review Response XCU6 section 1.11 under STDERR says:
When this section is listed as "The standard error shall be used only
for diagnostic messages.", it means that, unless otherwise stated, the
diagnostic messages shall be sent to the standard error only when the
exit status is non-zero
Thus, according to the normative text, sed is not allowed to write
warning messages (i.e. it must not write anything to stderr when sed's
exit status is zero). However, in XCU7 the STDERR section for sed has
changed to say:
The standard error shall be used only for diagnostic and warning
messages.
Therefore this should be considered to be a defect in XCU6 and a
Permanent Interpretation is recommended.
Review Type SA Review Start Date 2020-03-31 17:48 Last Updated 2020-03-31 10:02 Completed 2020-03-31 10:02 Status Complete Review Resolution Permanent Interpretation (PIN) Review Conclusion A permanent interpretation is granted.
Problem Reporting System Options:
- View Report 2707
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority