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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0597 Actions


    Problem Report Number 0597
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0201
    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.5
    Test Identification POSIX.cmd/ed/POSIX.cmd/ed/ed_07.sh 315
    Problem Summary PG4C.00075 This was refused because it is a duplicate. Use TIN4C.00012 instead.
    Problem Text
    This was refused because it is a duplicate. Use TIN4C.00012 instead.

    POSIX.cmd/ed/ed_07.sh FAILED ASSERTION #315
    What the test performs :
    =========================
    The test first performs :
    "1,\$G/e/\r"

    This marks the lines containing the character 'e' in the
    input file ed_out_315_1 (has 4 lines). The result is that
    all the four lines (all the four lines contain the character
    'e') in the input file ed_out_315_1 are marked.

    The test then performs the following substitutions :

    Next, the test suite performs,
    ".,+++s/l/L/\r"

    After the above substitute command, all the marked lines get
    modified and unmarked. This is in compliance with the POSIX
    standard P1003.2b/D11 May 95, page 52, Section 4.20.7.3.7 and
    4.20.7.3.8, from line number 894 to line number 902.

    After this substitution, all the lines in the buffer are
    unmarked which signifies that the execution of the 'G'
    command is complete.

    This also means, that the last command which got successfully
    executed is the substitute command and the current line is
    set to the last line (line #4) of the file ed_out_315_1.

    The above behaviour of ed(1) is in compliance with the
    standard (IEEE Std 1003.2-1992, Section 4.20.7.3.8, Page 266,
    line number 3783-3786), which quotes

    "The final value of the current line number shall be the
    value set by the last command successfully executed.
    (The last command successfully executed shall be the G
    command itself if a command fails or the null command is
    specifed)."

    and also the P1003.2b/D11 May95, Section 4.20.7.3.7 and
    Section 4.20.7.3.8, Page 52, line number 896-899 which
    quotes :

    "Then, going sequentially from the beginning of the
    file to the end of the file, the given command list
    shall be executed for each marked line, with the

    ^^^^^^^^
    current line number set so the address of that line.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Any line modified by the command list shall be
    unmarked."

    The test script then performs,

    "-,++s/e/E/\r"

    This is equivalent to substituting the character 'e' to 'E'
    in lines .-1 to .+2 (i.e, the line previous to the current
    line till two lines after the current line)

    Since the current line in the buffer (after the execution of
    the 'G' and subsequently the substitute command
    (".,+++s/l/L/\r")) is the line #4, which is the last line in
    the file, the reference to .++ in the substitute command
    ("-,++s/e/E/\r") is very well "out of range".

    This results in ed(1) giving an error, which is the expected
    behaviour of ed(1). We believe that this is a testsuite
    deficiency and thus has to be waivered.

    To fix the problem in the test suite :
    ========================================
    The second substitution command ("-,++s/e/E/\r") should be
    changed to address the valid range of lines (line #1 to line
    #4) in the buffer.

    Test Output
    os.POSIX.cmd/ed/ed_07.sh Failed Assertion #315
    520|1 1 23431 1 1|Assertion #315 (A): Test the g command operational behavior w
    520|1 1 23431 1 2| <LC> rt dot modification
    520|1 1 23431 1 11|Note: The behavior associated with this assertion is current
    520|1 1 23431 1 12| <LC> ly
    520|1 1 23431 1 13|the subject of an IEEE POSIX.2 interpretation request and ma
    520|1 1 23431 1 14| <LC> y
    520|1 1 23431 1 15|change in a future revision of POSIX.2.
    520|1 1 23431 1 16|diff of "ed_out_315_1" and "ed_eout_315_1":
    520|1 1 23431 1 17|*** ed_out_315_1 Sat Feb 3 14:49:59 1996
    520|1 1 23431 1 18|--- ed_eout_315_1 Sat Feb 3 14:49:43 1996
    520|1 1 23431 1 19|***************
    520|1 1 23431 1 20|*** 1,4 ****
    520|1 1 23431 1 21|! The fuRther eLaboration and development of systematic arit
    520|1 1 23431 1 22| <LC> hmetic, like
    520|1 1 23431 1 23|! neaRLy everything else which the mathematics of our centur
    520|1 1 23431 1 24| <LC> y has produced
    520|1 1 23431 1 25|! in the way of oRiginaL scientific ideas, is knit to Gauss.
    520|1 1 23431 1 26|! LeopoLd KRonecker.
    520|1 1 23431 1 27|--- 1,4 ----
    520|1 1 23431 1 28|! ThE fuRther eLaboratioN and development of systematic arit
    520|1 1 23431 1 29| <LC> hmetic, like
    520|1 1 23431 1 30|! NEaRLy everything else which the mathematics of our centur
    520|1 1 23431 1 31| <LC> y has produced
    520|1 1 23431 1 32|! iN thE way of oRiginaL scientific ideas, is knit to Gauss.
    520|1 1 23431 1 33|! LEopoLd KRoNecker.
    520|1 1 23431 1 34|Command failed: 'cmp_show ed_out_315_1 ed_eout_315_1'
    220|1 1 1 14:50:20|FAIL
    410|1 315 1 14:50:21|IC End
    80|1 0 14:50:47|TC End

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    The submitter is correct but a recent ruling regarding this issue
    exists. To avoid the confusion duplicate rulings regarding the same
    might cause we recommend this request be refused and the submitter
    use TIN4C.00012 instead.

    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