|Anonymous | Login||2020-07-08 21:31 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001319||[1003.1(2016)/Issue7+TC2] Shell and Utilities||Editorial||Clarification Requested||2020-01-17 16:42||2020-01-20 10:13|
|Final Accepted Text|
|Summary||0001319: Specify when to print text for a and r commands after d and D commands|
According 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.
Modify 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.
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.
|Tags||No tags attached.|
edited on: 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.
|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-17 16:43||quinq||Issue Monitored: quinq|
|2020-01-20 10:13||geoffclare||Note Added: 0004740|
|2020-03-19 16:11||geoffclare||Note Edited: 0004740|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|