HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2530 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 2530.


Report 2530 Actions


    Problem Report Number 2530
    Submitter's Classification Specification problem
    State Resolved
    Resolution Temporary Interpretation (TIN)
    Problem Resolution ID TIN.X.0130
    Raised 2007-03-12 19:23
    Updated 2007-03-15 14:00
    Published 2007-03-15 14:00
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC
    Test Identification /tset/POSIX.shell/shell/sh_05.ex.352
    Specification Commands and Utilities Issue 4 Version 2
    Location in Spec XCU 2.6.3
    Linked Problem Reports 2519
    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 2007-03-12 19:23
    Last Updated 2007-03-15 14:00
    Completed 2007-03-15 14:00
    Status Complete
    Review Resolution Temporary Interpretation (TIN)
    Review Conclusion A temporary interpretation is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority