|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2514 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2514.
Report 2514 Actions
Problem Report Number 2514 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1301 Raised 2006-04-10 23:16 Updated 2006-04-12 01:39 Published 2006-04-12 01:39 Product Standard Commands and Utilities V4 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSC version 5.2.7 Test Identification POSIX.upe/vi/vi_05.ex 254 Specification Shell and Utilities Issue 6 Location in Spec Line 39187 in XCU TC2 Problem Summary vi assertion 254 not updated for UNIX03 Problem Text from vi_05.sh
########################################################################
#
# Assertion: 254
# Standard: POSIX
# Type: C
# When [count] r <newline> is entered in command mode, then vi
replaces the
# next count characters in the current line with a single <newline>
and
# positions the cursor to the first character of the newly generated
line.
########################################################################
This test executes the following commands in vi
/c <cr>
r <cr>
i 1 <esc>
/h <cr>
3r <cr>
i 2 <esc>
:x <cr>
and expects the following output
$ cat vi_exp_1
first
se
1ond
t
2d
last
However, SUSv3 TC2 states the following for replace character
command(lines 39187 to 39191)
If character is <carriage-return> or <newline>, count new lines shall be
appended to the current line. All but the last of these lines shall be
empty. count characters at and after the cursor shall be discarded, and
any remaining characters after the cursor in the current line shall be
moved to the last of the new lines. If the autoindent edit option is
set, they shall be preceded by the same number of autoindent characters
found on the line from which the command was executed.
Thus the 3r<cr> would be expected to insert two blank lines and move the
remaining characters to a third line.
so the expected output should be
first
se
1ond
t
2d
lastTest Output
***********************************************************************
/tset/POSIX.upe/vi/vi_05.ex 254 Failed
Test Information:
Assertion #254 (C): count r <newline> replaces text
Standard output isn't the same as file 'vi_exp_1'
diff of "out.stdout" and "vi_exp_1":
*** out.stdout Sat Apr 8 02:03:45 2006
--- vi_exp_1 Sat Apr 8 02:03:05 2006
***************
*** 2,8 ****
se
1ond
t
-
-
2d
last
--- 2,6 ----
***********************************************************************Review Information
Review Type TSMA Review Start Date 2006-04-10 23:16 Last Updated 2006-04-11 00:38 Completed 2006-04-11 00:38 Status Complete Review Recommendation Test Suite Deficiency (TSD) Review Response This is accepted as a fault in the test suite. (It is fixed in the
recent VSC 5.2.8 beta release.)
Review Type SA Review Start Date 2006-04-10 23:38 Last Updated 2006-04-11 01:39 Completed 2006-04-11 01:39 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion This PR represents an agreed Deficiency in the cited version of the
Test Suite. Note however that the latest release of the test suite
includes a fix for this issue.
Problem Reporting System Options:
- View Report 2514
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority