|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0765 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 0765.
Report 0765 Actions
Problem Report Number 0765 Submitter's Classification Specification problem State Resolved Resolution Temporary Interpretation (TIN) Problem Resolution ID TIN.X.0056 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-08-24 08:00 Product Standard Commands and Utilities V2 (UNIX 95) Certification Program The Open Brand certification program Test Suite VSC version 4.1.4 Test Identification POSIX.cmd/awk 243 Specification Commands and Utilities Issue 4 Version 2 Location in Spec See Problem Text Problem Summary TIN4C.00005 Test may fail on implementations which implement historical (POSIX 1003.2b) field splitting semantics. Problem Text
This test may fail on implementations that implement hstorical
(current POSIX.2b draft) field splitting behavior.
awk test purpose 243 implements field splitting based on the
current spec, which states
Execution of the awk program starts by first executing the
actions associated with all BEGIN patterns in the order they
occur in the program. Then each file operand (or standard input
if no files were specified) will be processed in turn by reading
data from the file until a record separator is seen (a newline
character by default), ...
splitting the current record into fields using the current value
of FS according to the rules in Regular Expressions on page 172,
...evaluating each pattern...
This implies that any change in FS will be used to split the
next record read following the assignment, not the current record.
This was also the original POSIX wording, but the 1003.2b draft
changed this read
"When the first reference to a field in the record is evaluated, the
record is split into fields using the current value of FS ..."
This restores awk field splitting back to historical practice,
The test depends on the XPG specified behavior and will fail
on IUTs which implement historical practice.
We believe the test should allow either behavior in anticipation
of 1003.2b being approved, the 2003.2 being realigned with it,
and the tests needing aligned with 2003.2.Test Output
520|1 1 25925 1 1|Assertion #243 (A):
520|1 1 25925 1 1|Standard output not same as expected standard output.
520|1 1 25925 1 2|diff of "awk_eso_243" and "awk_out_243":
520|1 1 25925 1 3|*** awk_eso_243 Mon Aug 7 09:51:19 1995
520|1 1 25925 1 4|--- awk_out_243 Mon Aug 7 09:51:20 1995
520|1 1 25925 1 5|***************
520|1 1 25925 1 6|*** 1,10 ****
520|1 1 25925 1 7| FS = field 1 = Russia
520|1 1 25925 1 8| FS = field 1 = Canada
520|1 1 25925 1 9| FS = field 1 = China
520|1 1 25925 1 10|! FS = [[:digit:]]{2} field 1 = USA
520|1 1 25925 1 11| FS = [[:digit:]]{2} field 1 = Brazil
520|1 1 25925 1 12| FS = [[:digit:]]{2} field 1 = Australia
520|1 1 25925 1 13| FS = [[:digit:]]{2} field 1 = India
520|1 1 25925 1 14|! FS = a field 1 = Argentina
520|1 1 25925 1 15| FS = a field 1 = Sud
520|1 1 25925 1 16| FS = a field 1 = Algeri
520|1 1 25925 1 17|--- 1,10 ----
520|1 1 25925 1 18| FS = field 1 = Russia
520|1 1 25925 1 19| FS = field 1 = Canada
520|1 1 25925 1 20| FS = field 1 = China
520|1 1 25925 1 21|! FS = [[:digit:]]{2} field 1 = USA
520|1 1 25925 1 22| FS = [[:digit:]]{2} field 1 = Brazil
520|1 1 25925 1 23| FS = [[:digit:]]{2} field 1 = Australia
520|1 1 25925 1 24| FS = [[:digit:]]{2} field 1 = India
520|1 1 25925 1 25|! FS = a field 1 = Argentin
520|1 1 25925 1 26| FS = a field 1 = Sud
520|1 1 25925 1 27| FS = a field 1 = Algeri
220|1 1 1 09:51:27|FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
Anticipating future alignment of the POSIX 2003.2 method(s)
which the test(s) listed are based on with POSIX 1003.2b,
a temporary interpretation is recommended.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Temporary Interpretation (TIN) Review Conclusion
A Temporary Interpretation is granted.
Problem Reporting System Options:
- View Report 0765
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority