|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2519 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 2519.
Report 2519 Actions
Problem Report Number 2519 Submitter's Classification Specification problem State Resolved Resolution Temporary Interpretation (TIN) Problem Resolution ID TIN.X.0129 Raised 2006-07-31 14:02 Updated 2006-08-04 02:49 Published 2006-08-04 02:49 Product Standard Commands and Utilities V4 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSC version 5.2.8 Test Identification /tset/POSIX.shell/shell/sh_05.ex.352 Specification Shell and Utilities Issue 6 Location in Spec XCU 2.6.3 Problem Summary shell command substitution not implemented by historical systems Problem Text A recent change to the test suite has shown up a problem in
the handling of command substitution by many existing shells.
Although this has been a bug for many years, systems that have
had this bug have not received any customer complaints related
to this issue.
This is a request to issue an intepretation to permit
existing behavior.
Although requested against UNIX 03, this also applies to
XPG4, UNIX 95 and UNIX 98.
Proposed wording for a future revision of the standard to
document this matter.
On XCU p40, change lines 1677-1679 to:
With the $(command) form, all characters following the open parenthesis
to the matching closing parenthesis constitute the command. Any valid
shell script can be used for command, except:
+ a script consisting solely of redirections
+ a script containing unbalanced parentheses used as control
operators (see Case Conditional Construct on page 53)
which produce unspecified results.
On p53, add after 2166:
When used in a command-substitution $(), the open parenthesis in front
of pattern is not optional.
Note that changes would also be needed to sections of the rationale
corresponding to this text.Test Output /tset/POSIX.shell/shell/sh_05.ex 352 Failed
Test Information:
Assertion #352 (A): All characters within the parentheses of the
command substitution expression constitute the command
Expected exit code = 0; Received 2
Standard output isn't the same as file 'sh_352.eso'
diff of "out.stdout" and "sh_352.eso":
*** out.stdout (Date Deleted)
--- sh_352.eso (Date Deleted)
***************
*** 25,27 ****
--- 25,30 ----
sh_352.23
sh_352.24
sh_352.25a sh_352.25b
+ sh_352.26
+ sh_352.27 ) ) )
+ sh_352.28 )
Standard error isn't empty
Contents of out.stderr:
sh_352.sh[41]: Syntax error at line 41 : `case' is not matched.Review Information
Review Type SA Review Start Date 2006-07-31 14:02 Last Updated 2006-08-04 02:00 Completed 2006-08-04 02:00 Status Complete Review Resolution Temporary Interpretation (TIN) Review Conclusion This PR represents an agreed Temporary Interpretation
Problem Reporting System Options:
- View Report 2519
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority