[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
The following issue has a resolution that has been APPLIED. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: Applied Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text:See http://austingroupbugs.net/view.php?id=1130#c4105 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2019-10-31 11:39 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 2018-09-06 16:36 nick Note Added: 0004105 2018-09-06 16:37 nick Final Accepted Text => See Bugnote:0004105 2018-09-06 16:37 nick Status New => Resolution Proposed 2018-09-06 16:37 nick Resolution Open => Accepted As Marked 2018-09-06 16:37 nick Tag Attached: tc3-2008 2018-09-06 16:38 nick Status Resolution Proposed => Resolved 2018-09-06 16:43 nick Note Added: 0004107 2018-09-06 16:43 nick Note Edited: 0004107 2018-09-07 08:17 geoffclare Final Accepted Text See Bugnote:0004105 => See http://austingroupbugs.net/view.php?id=1130#c4105 2019-10-31 11:39 geoffclare Status Resolved => Applied ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: Resolved Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text:See http://austingroupbugs.net/view.php?id=1130#c4105 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-09-07 08:17 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 2018-09-06 16:36 nick Note Added: 0004105 2018-09-06 16:37 nick Final Accepted Text => See Bugnote:0004105 2018-09-06 16:37 nick Status New => Resolution Proposed 2018-09-06 16:37 nick Resolution Open => Accepted As Marked 2018-09-06 16:37 nick Tag Attached: tc3-2008 2018-09-06 16:38 nick Status Resolution Proposed => Resolved 2018-09-06 16:43 nick Note Added: 0004107 2018-09-06 16:43 nick Note Edited: 0004107 2018-09-07 08:17 geoffclare Final Accepted Text See Bugnote:0004105 => See http://austingroupbugs.net/view.php?id=1130#c4105 ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
The following issue has been set as RELATED TO issue 0001131. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-08-31 14:16 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: Resolved Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text:See Bugnote:0004105 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-09-06 16:43 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == -- (0004107) nick (manager) - 2018-09-06 16:43 http://austingroupbugs.net/view.php?id=1130#c4107 -- Note that the resolution in http://austingroupbugs.net/view.php?id=1130#c4105 includes rationale for the change in http://austingroupbugs.net/view.php?id=1130 Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 2018-09-06 16:36 nick Note Added: 0004105 2018-09-06 16:37 nick Final Accepted Text => See Bugnote:0004105 2018-09-06 16:37 nick Status New => Resolution Proposed 2018-09-06 16:37 nick Resolution Open => Accepted As Marked 2018-09-06 16:37 nick Tag Attached: tc3-2008 2018-09-06 16:38 nick Status Resolution Proposed => Resolved 2018-09-06 16:43 nick Note Added: 0004107 ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
The following issue has been RESOLVED. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: Resolved Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text:See Bugnote:0004105 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-09-06 16:38 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 2018-09-06 16:36 nick Note Added: 0004105 2018-09-06 16:37 nick Final Accepted Text => See Bugnote:0004105 2018-09-06 16:37 nick Status New => Resolution Proposed 2018-09-06 16:37 nick Resolution Open => Accepted As Marked 2018-09-06 16:37 nick Tag Attached: tc3-2008 2018-09-06 16:38 nick Status Resolution Proposed => Resolved ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
The following issue has a PROPOSED RESOLUTION. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: Resolution Proposed Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text:See Bugnote:0004105 == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-09-06 16:37 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 2018-09-06 16:36 nick Note Added: 0004105 2018-09-06 16:37 nick Final Accepted Text => See Bugnote:0004105 2018-09-06 16:37 nick Status New => Resolution Proposed 2018-09-06 16:37 nick Resolution Open => Accepted As Marked ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-09-06 16:36 UTC == Summary:Address 0 does not make sense for the c command == Relationships ID Summary -- related to 0001131 The synopsis of the i command is wrong ... == -- (0004105) nick (manager) - 2018-09-06 16:36 http://austingroupbugs.net/view.php?id=1130#c4105 -- Suggested change: On page 2682, line 87448, delete "Address 0 shall be valid for this command; it shall be interpreted as if address 1 were specified." On page 2691, lines 87803-87805, change For consistency with the a and r commands and better user functionality, the i and c commands must also accept an address of 0, in which case 0i is treated as 1i and likewise for the c command. to For consistency with the a and r commands and better user functionality, the i command also accepts an address of 0. However, it is unspecified if 0i is treated as 1i (which will fail if the buffer is empty), or means insert at the beginning of the buffer (which will succeed even if the buffer is empty). Earlier versions of this standard required address 0 for the c command to be treated as 1 also, but this requirement has been removed, though implementations are permitted to do this as an extension. Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 2018-09-06 16:33 geoffclare Relationship added related to 0001131 2018-09-06 16:36 nick Note Added: 0004105 ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-08-31 14:16 UTC == Summary:Address 0 does not make sense for the c command == -- (0004098) geoffclare (manager) - 2018-08-31 14:16 http://austingroupbugs.net/view.php?id=1130#c4098 -- I did some digging into the history... This requirement was not in the original POSIX.2-1992. It came into the standard via the .2b amendment. Unfortunately .2b does not give a clear explanation for the change. It specifies this change followed by a change to the Global command, and then says "The preceding two changes are the result of interpretation request PASC 1003.2-92 #119 submitted for IEEE Std 1003.2-1992." Interpretation #119 can be found in this online zip file: http://standards.ieee.org/findstds/interps/1003.2-1992_interp.zip but it is entirely about the Global command; there is no mention of the Change command. Presumably the update to the Change command arose when discussion of interpretation #119 digressed, but it is a shame that the .2b developers did not capture the reason for the change as rationale in .2b. I wonder whether they were considering ranges - it makes sense for 0,2c to work the same as 1,2c - however I agree with Antonio that specifying 0c to be the same as 1c makes no sense. The only behaviour for 0c that makes sense to me would be for it to work like 0a, by analogy with s/^/string/ which inserts the string at the beginning of a line. Since most ed implementations changed to support address 0 in order to conform to .2b, I suggest that rather than removing the requirement, we should make support for address 0 optional and say that if it is supported, the behaviour is unspecified. Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- 2018-08-31 14:16 geoffclare Note Added: 0004098 ==
[1003.1(2016)/Issue7+TC2 0001130]: Address 0 does not make sense for the c command
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1130 == Reported By:Antonio Diaz Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1130 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Antonio Diaz Organization: GNU User Reference: Section:ed Page Number:2682 Line Number:87448-87449 Interp Status: --- Final Accepted Text: == Date Submitted: 2017-03-21 17:07 UTC Last Modified: 2018-08-30 16:24 UTC == Summary:Address 0 does not make sense for the c command == Issue History Date ModifiedUsername FieldChange == 2017-03-21 17:07 Antonio Diaz New Issue 2017-03-21 17:07 Antonio Diaz Name => Antonio Diaz 2017-03-21 17:07 Antonio Diaz Organization => GNU 2017-03-21 17:07 Antonio Diaz Section => ed 2017-03-21 17:07 Antonio Diaz Page Number => 0 2017-03-21 17:07 Antonio Diaz Line Number => 0 2017-03-21 17:10 Antonio Diaz Issue Monitored: Antonio Diaz 2017-03-21 18:26 salty-horseIssue Monitored: salty-horse 2018-08-30 16:24 nick Page Number 0 => 2682 2018-08-30 16:24 nick Line Number 0 => 87448-87449 2018-08-30 16:24 nick Interp Status => --- ==