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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0641 Actions


    Problem Report Number 0641
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0245
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 4.1.4
    Test Identification tset/POSIX.cmd/ed/ed_01.ex 48 49
    Problem Summary PG4C.00031 Test exits with a non-zero exit status.
    Problem Text
    Test exits with a non-zero exit status.

    Test #48 creates the following command and input files

    |> # Create command file ed_in_48_1
    |> cat << \VSC-EOF > ed_in_48_1
    |> G/Greek/
    |>
    |> Q
    |> VSC-EOF
    |>
    |> # Create input data file ed_in_48_2
    |> cat << \VSC-EOF > ed_in_48_2
    |> Greek Line 1
    |> Greek Line 2
    |> George Bernard Shaw
    |> VSC-EOF
    |> ed < ed_in_48_1 ed_in_48_2 > $CT_STDOUT 2> $CT_STDERR

    As you can see, it creates a file with _two_ instances
    of lines matching the pattern /Greek/, but then runs
    a 'G' (globally, one at a time) command, feeding the
    G command only _one_ empty line. The "ed" command
    complains when the "Q" command is submitted to the
    "G" command while "G" is stopped at the second /Greek/
    line.

    We believe the test should either have a second blank line in
    the command file

    |> # Create command file ed_in_48_1
    |> cat << \VSC-EOF > ed_in_48_1
    |> G/Greek/
    |>
    |>
    |> Q
    |> VSC-EOF

    or else only have one /Greek/ line in the input file

    |> # Create input data file ed_in_48_2
    |> cat << \VSC-EOF > ed_in_48_2
    |> Greek Line 1
    |> George Bernard Shaw
    |> VSC-EOF

    VSC4.1.4/vsc/tset/POSIX.cmd/ed/ed_01.ex:tp49()

    Test 49 fails in almost exactly the way just reported for test 48.
    It uses the same input file to test that "V/George/" selects and
    prints the same lines as the "G/Greek/" command did in test 48.
    Test Output

    ************************************************************************ /tset/POSIX.cmd/ed/ed_01.ex 1 Failed


    Test Information:
    Assertion #48 (A): Test the G command
    Expected exit code = 0; Received 4
    ************************************************************************

    ************************************************************************ /tset/POSIX.cmd/ed/ed_01.ex 1 Failed


    Test Information:
    Assertion #49 (A): Test the V command
    Expected exit code = 0; Received 4

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    The ed spec states

    In the G command, the first step is to mark every line that
    matches the given RE. Then, for every such line, that line will
    be written, the current line number will be set to the address of
    that line, and any one command (other than one of the a, c, i, g,
    G, v and V commands) can be input and will be executed. A
    newline character acts as a null command (causing no action to be
    taken on the current line); an & causes the reexecution of the


    We read this as specifying that the command

    G/Greek/

    will mark the 2 lines in the input file containing the string, Greek.

    Then the first marked line

    Greek Line 1

    will be displayed.

    The next command is a newline which the spec says will cause no
    action. So the next marked line

    Greek Line 2

    will be displayed.

    The next command is Q. Since this is not one of the commands disallowed
    above (a, c, i, g, G, v and V commands) it should be executed without
    error. At that point ed should exit with a 0 exit status.

    Essentially the same logic holds true for test 49.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority