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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0939 Actions


    Problem Report Number 0939
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0454
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1995-08-30 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.upe/ex 333
    Problem Summary TSD4C.00055 The test may fail on all implementations because of a typo.
    Problem Text
    The test may fail on all implementations because of a typo.

    For tp333(), the assertion says:

    # When the command write \e! file is called, then ex considers the !
    # character to be part of the file name to be read and does not invoke
    # the command interpreter.

    This is saying that if I type "write \!file" in ex, the '!' will be taken
    literally since it is escaped.

    From tp333():

    excmd="write \!ex_out_1\nq!\n"
    printf "$excmd" | ex ex_data_1 > $CT_STDOUT 2> $CT_STDERR

    The commands

    excmd="write \!ex_out_1\nq!\n"
    printf "$excmd"

    will produce the following output:

    write !ex_out_1
    q!

    Notice that the '!' is not escaped, so it won't be taken literally by ex.
    Since $excmd is passed to printf as the format argument, it will be
    expanded by printf, so "\!" becomes "!" and ex will see "write !ex_out_1"
    not "write \!ex_out_1" as described in the documentation.

    The line:

    excmd="write \!ex_out_1\nq!\n"

    should be:

    excmd="write \\!ex_out_1\nq!\n"
    Test Output
    200|1 1 11:28:52|TP Start
    520|1 1 23802 1 1|Assertion #333 (C): use of escaped ! at
    beginning of write file name
    520|1 1 23802 1 1|Standard error isn't empty
    520|1 1 23802 1 2|Contents of out.stderr:
    520|1 1 23802 1 3|UX:ksh: ERROR: ex_out_1: not found
    520|1 1 23802 1 4|*ERROR - jrnl_file_diff: unable to open or
    read file "!ex_out_1".
    520|1 1 23802 1 5|Command failed: 'jrnl_file_diff !ex_out_1
    ex_data_1'
    220|1 1 1 11:28:55|FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority