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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0736 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 0736.


Report 0736 Actions


    Problem Report Number 0736
    Submitter's Classification Specification problem
    State Resolved
    Resolution Temporary Interpretation (TIN)
    Problem Resolution ID TIN.X.0027
    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/sh 6
    Specification Commands and Utilities Issue 4 Version 2
    Location in Spec See Problem Text
    Problem Summary TIN4C.00034 The test may fail on implementations that adhere to POSIX.2b where sh -o produces meaningful output instead of an error.
    Problem Text
    The test may fail on implementations that adhere to POSIX.2b
    where sh -o produces meaningful output instead of an error.

    The test in question verifies the following assertion:

    If the User Portability Utilities Option is supported:
    When a required option argument is not provided to a call to sh
    then a diagnostic message is issued to standard error and sh
    exits with a non-zero exit status.

    The test uses the -o option to sh, which (according to the POSIX.2 and
    XCU4 Synopsis for sh) requires an option argument. It checks that

    sh -o

    with no argument to the -o generates an error. However, this is not
    the historical behavior of the sh utility. Rather, historical
    behavior is for

    sh -o

    to display on standard output the current setting of the shell's
    options. In the most recent draft of POSIX.2b the language in
    the standard is changed to support (indeed, to require) the
    historical behavior. In view of the interpretation and the
    pending change in the POSIX.2 specification, it is clearly
    appropriate to deem this a grey area in the specification and
    allow the historical behavior.
    Test Output
    ************************************************************************
    /tset/POSIX.cmd/sh/sh_01.ex 1 Failed


    Test Information:
    Assertion #6 (C): Refer to general assertion GA27: using the '-o' option
    Note: The behavior associated with this assertion is expected
    to change in a future revision of POSIX.2.
    Expected exit code != 0; Received 0
    Standard output isn't empty
    Contents of out.stdout:
    Current option settings
    allexport off
    bgnice off
    emacs off
    errexit off
    gmacs off
    ignoreeof off
    interactive off
    keyword off
    markdirs off
    monitor off
    noexec off
    noclobber off
    noglob off
    nolog off
    nounset off
    privileged off
    restricted off
    trackall off
    verbose off
    vi off
    viraw off
    xtrace off
    notify off
    hello
    Standard error is empty
    ************************************************************************

    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 sh specification in a
    future draft of POSIX 2003.2b 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:

     

    Back   


Contact the Certification Authority