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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0905 Actions


    Problem Report Number 0905
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0420
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1995-09-15 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/sed 45
    Problem Summary TSD4C.00089 This test may fail on all implementations.
    Problem Text
    This test may fail on all implementations.

    In tp45(), the following files are created for input to sed:

    # Create input data file sed_in_45_3
    cat << \VSC-EOF > sed_in_45_3
    \[a\[a-z]][,\*b\[xyz]]*p
    \[a\[a-z]][,\*a[abc]\*\.*p
    \[b\[xyz]][,\*a[abc]\*\.*p
    VSC-EOF

    # Create input data file sed_in_45_4
    cat << \VSC-EOF > sed_in_45_4
    1
    a[a-z]]
    3
    b[xyz]]
    5
    XXX
    1
    a[a-z]]
    3
    b[xyz]]
    5
    XXX
    VSC-EOF

    Sed is then called like so:

    sed -n -f sed_in_45_3 sed_in_45_4 > $CT_STDOUT 2> $CT_STDERR


    Here is the problem:

    In the address "\[a\[a-z]]["
    ^ ^ ^
    | | |
    #1 #2 #3

    Bracket #1 is a delimiter. Bracket #2 is escaped with a backslash to
    indicate that it is not a delimiter. Bracket #3 is a delimiter.

    The resulting regular expression is "a[a-z]]".

    The test expects this regular expression to match the lines:

    a[a-z]]
    a[a-z]]

    But the backslash is used to indicate that bracket #2 is not a delimiter.
    It does not take away the bracket's meaning as a special character.

    In other words, the regular expression "a[a-z]]" should NOT match those
    lines; it should instead match the character 'a' followed by a character
    in the range 'a' - 'z', followed by the character ']'.
    Test Output
    400|1 45 1 10:24:45|IC Start
    200|1 1 10:24:45|TP Start
    520|1 1 56554 1 1|Assertion #45 (A): Test double BRE addresses with non-standard
    delimiters
    520|1 1 56554 1 1|Standard output isn't the same as file 'sed_eso_45_2'
    520|1 1 56554 1 2|diff of "out.stdout" and "sed_eso_45_2":
    520|1 1 56554 1 3|*** out.stdout Tue Sep 5 10:24:45 1995
    520|1 1 56554 1 4|--- sed_eso_45_2 Tue Sep 5 10:24:45 1995
    520|1 1 56554 1 5|***************
    520|1 1 56554 1 6|*** 0 ****
    520|1 1 56554 1 7|--- 1,26 ----
    520|1 1 56554 1 8|+ a[a-z]]
    520|1 1 56554 1 9|+ a[a-z]]
    520|1 1 56554 1 10|+ 3
    520|1 1 56554 1 11|+ 3
    520|1 1 56554 1 12|+ b[xyz]]
    520|1 1 56554 1 13|+ b[xyz]]
    520|1 1 56554 1 14|+ b[xyz]]
    520|1 1 56554 1 15|+ 5
    520|1 1 56554 1 16|+ 5
    520|1 1 56554 1 17|+ XXX
    520|1 1 56554 1 18|+ XXX
    520|1 1 56554 1 19|+ 1
    20|1 1 56554 1 20|+ 1
    520|1 1 56554 1 21|+ a[a-z]]
    520|1 1 56554 1 22|+ a[a-z]]
    520|1 1 56554 1 23|+ a[a-z]]
    520|1 1 56554 1 24|+ 3
    520|1 1 56554 1 25|+ 3
    520|1 1 56554 1 26|+ 3
    520|1 1 56554 1 27|+ b[xyz]]
    520|1 1 56554 1 28|+ b[xyz]]
    520|1 1 56554 1 29|+ b[xyz]]
    520|1 1 56554 1 30|+ 5
    520|1 1 56554 1 31|+ 5
    520|1 1 56554 1 32|+ XXX
    520|1 1 56554 1 33|+ XXX
    220|1 1 1 10:24:49|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