View Issue Details

IDProjectCategoryView StatusLast Update
00013191003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:08
Reporterquinq Assigned To 
PrioritynormalSeverityEditorialTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
NameQuentin Rameau
Organization
User Reference
Sectionsed
Page Number3219
Line Number107979
Interp Status---
Final Accepted TextSee 0001319:0005038.
Summary0001319: Specify when to print text for a and r commands after d and D commands
DescriptionAccording to current specifications, an a or r command should never print its content when a d or D command in the script, as it should normally be printed “when reaching the end of the script”, and d or D command always “start the next cycle” without reaching the end of the script.

This does not looks like what is actually intended, and doesn't reflect what some other implementation do.

The a and r text should be printed before begining the next cycle.
Desired ActionModify text starting at line 107977 from:

The text specified for the a command, and the contents of the file specified for the r command, shall be written to standard output just before the next attempt to fetch a line of input when executing the N or n commands, or when reaching the end of the script.

to:

The text specified for the a command, and the contents of the file specified for the r command, shall be written to standard output just before the next attempt to fetch a line of input when executing the N or n or D or d commands, or when reaching the end of the script.
Tagstc3-2008

Activities

geoffclare

2020-01-20 10:13

manager   bugnote:0004740

Last edited: 2020-03-19 16:11

The original POSIX.2-1992 text for the sed "a" command was:
Write text to standard output just before each attempt to fetch a line of input, whether by executing the N command or by beginning a new cycle.


This changed to the current text in the .2b amendment. It appears that in fixing whatever problem .2b fixed, it also broke things by dropping the reference to beginning a new cycle.

Don Cragun

2020-10-08 16:25

manager   bugnote:0005038

On page 3219 lines 107977-107980 (XCU sed extended description) change:
The text specified for the a command, and the contents of the file specified for the r command, shall be written to standard output just before the next attempt to fetch a line of input when executing the N or n commands, or when reaching the end of the script.
to:
The text specified for the a command, and the contents of the file specified for the r command, shall be written to standard output just before the next attempt to fetch a line of input when executing the c, D, d, N, or n commands, just before executing the q command, or when reaching the end of the script.

Issue History

Date Modified Username Field Change
2020-01-17 16:42 quinq New Issue
2020-01-17 16:42 quinq Name => Quentin Rameau
2020-01-17 16:42 quinq Section => sed
2020-01-17 16:42 quinq Page Number => 3219
2020-01-17 16:42 quinq Line Number => 107979
2020-01-20 10:13 geoffclare Note Added: 0004740
2020-03-19 16:11 geoffclare Note Edited: 0004740
2020-10-08 16:25 Don Cragun Note Added: 0005038
2020-10-08 16:27 Don Cragun Interp Status => ---
2020-10-08 16:27 Don Cragun Final Accepted Text => See biugnote:5038.
2020-10-08 16:27 Don Cragun Status New => Resolved
2020-10-08 16:27 Don Cragun Resolution Open => Accepted As Marked
2020-10-08 16:27 Don Cragun Tag Attached: tc3-2008
2020-10-08 16:28 Don Cragun Final Accepted Text See biugnote:5038. => See 0001319:0005038.
2020-12-04 16:33 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed