|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0737 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 0737.
Report 0737 Actions
Problem Report Number 0737 Submitter's Classification Specification problem State Resolved Resolution Temporary Interpretation (TIN) Problem Resolution ID TIN.X.0028 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-11-01 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/find 74,75,76 Specification Commands and Utilities Issue 4 Version 2 Location in Spec See Problem Text Problem Summary TIN4C.00033 The tests may fail on implementations that adhere to POSIX.2b where the definition of n is one less than defined in POSIX.2. Problem Text
The tests may fail on implementations that adhere to POSIX.2b
where the definition of n is one less than defined in POSIX.2.
The tests in question verify the following assertions:
74:
When find <path> -atime <n> is invoked, find recursively descends the
directory hierarchy from each file specified by <path>. The -atime <n>
primary evaluates to true only for those files examined in the
directory hierarchy whose access time subtracted from the initialization
time is between <n>-1 and <n> multiples of 24 hours.
75:
When find <path> -mtime <n> is invoked, find recursively descends the
directory hierarchy from each file specified by <path>. The -mtime <n>
primary evaluates to true only for those files examined in the
directory hierarchy whose modification time subtracted from the
initialization time is between <n>-1 and <n> multiples of 24 hours.
76:
When find <path> -ctime <n> is invoked, find recursively descends the
directory hierarchy from each file specified by <path>. The -ctime <n>
primary evaluates to true only for those files examined in the
directory hierarchy whose time of last change of file status information
time subtracted from the initialization time is between <n>-1 and <n>
multiples of 24 hours.
These assertions accurately restate the requirements of POSIX.2. However,
POSIX.2 erred in its specification, which did not reflect the historic
behavior of the find utility. This issue was specifically addressed
in IEEE interpretation pasc-1003.2-058.
In fact, the wording of POSIX.2 does not describe the historic behavior of
the find utility. In the most recent draft (Draft 11) of POSIX.2b, the
behavior of the -atime, -mtime and -ctime operands has been changed. The
following is taken from POSIX 1003.2b Draft 11 p. 56:
----------------start of extract from POSIX.2b----------------
-atime n The primary shall evaluate as true if the file access
time subtracted from the initialization time, divided
by 86400 (with any remainder discarded), is n.
-ctime n The primary shall evaluate as true if the time of last
change of file status information subtracted from the
initialization time, divided by 86400 (with any remainder
discarded), is n.
-mtime n The primary shall evaluate as true if the file modification
time subtracted from the initialization time, divided
by 86400 (with any remainder discarded), is n.
Rationale: This change is required to match historical practice and is
the result of intrepretation request PASC 1003.2 #58 submitted for
IEEE Std 1003.2-1992.
-----------------end of extract from POSIX.2b-----------------
In view of this changed specification, the requirements of these assertions
clearly constitute a grey area.Test Output
-----------------start of test output------------------
************************************************************************
/tset/POSIX.cmd/find/find.ex 1 Failed
Test Information:
Assertion #74 (A): Option -atime
Standard output isn't the same as file 'find0742.exp'
diff of "out.stdout" and "find0742.exp":
*** out.stdout Wed Sep 20 21:44:12 1995
--- find0742.exp Wed Sep 20 21:43:42 1995
***************
*** 0 ****
--- 1 ----
+ df074.tmp/f1
************************************************************************
************************************************************************
/tset/POSIX.cmd/find/find.ex 1 Failed
Test Information:
Assertion #75 (A): Option -mtime
Standard output isn't the same as file 'find0752.exp'
diff of "out.stdout" and "find0752.exp":
*** out.stdout Wed Sep 20 21:44:45 1995
--- find0752.exp Wed Sep 20 21:44:15 1995
***************
*** 0 ****
--- 1 ----
+ df075.tmp/f2
************************************************************************
************************************************************************
/tset/POSIX.cmd/find/find.ex 1 Failed
Test Information:
Assertion #76 (A): Option -ctime
"df076.tmp" wasn't found in standard output
"df076.tmp/f1" wasn't found in standard output
************************************************************************
------------------end of test output-------------------
Note: this output was from the vrpt report.
Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
Anticipating acceptance of the modified find specification in POSIX
2003.2b/D11 and the eventual alignment of the tests with it 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 0737
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority