Austin Group Defect Tracker

Aardvark Mark III


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001131 [1003.1(2016)/Issue7+TC2] Shell and Utilities Objection Error 2017-03-21 17:42 2017-03-21 17:42
Reporter Antonio Diaz View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Antonio Diaz
Organization GNU
User Reference
Section ed
Page Number 0
Line Number 0
Interp Status ---
Final Accepted Text
Summary 0001131: The synopsis of the i command is wrong and inconsistent with the synopsis of the a command
Description The synopsis of the i command states that "Address 0 shall be valid for this command; it shall be interpreted as if address 1 were specified".

But the command "1i" is invalid in an empty buffer. If interpreted literally, the synopsis implies that it is not possible to insert text in an empty buffer. IMO, address 0 should always mean "at the beginning of the buffer" instead of sometimes being considered as a synonym for address 1.

The synopsis of the i command also states that "This command differs from the a command only in the placement of the input text". This seems to imply that both commands must set the current address to the same value if no lines are appended/inserted. This value should be 0 for an empty append/insert at address 0 to be consistent with the synopsis of the a command.
See discussion at http://lists.gnu.org/archive/html/bug-ed/2016-04/msg00009.html [^]
Desired Action Change the synopsis of the i command to:

The i command shall insert the given text before the addressed line; the current line number shall become the address of the last inserted line or, if there were none, the addressed line. This command differs from the a command only in the placement of the input text. Address 0 shall be valid for this command; it shall cause the inserted text to be placed at the beginning of the buffer.
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-03-21 17:42 Antonio Diaz New Issue
2017-03-21 17:42 Antonio Diaz Name => Antonio Diaz
2017-03-21 17:42 Antonio Diaz Organization => GNU
2017-03-21 17:42 Antonio Diaz Section => ed
2017-03-21 17:42 Antonio Diaz Page Number => 0
2017-03-21 17:42 Antonio Diaz Line Number => 0
2017-03-21 18:26 salty-horse Issue Monitored: salty-horse


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker