Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001319 [1003.1(2016/18)/Issue7+TC2] Shell and Utilities Editorial Clarification Requested 2020-01-17 16:42 2024-06-11 09:08
Reporter quinq View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Closed  
Name Quentin Rameau
Organization
User Reference
Section sed
Page Number 3219
Line Number 107979
Interp Status ---
Final Accepted Text See Note: 0005038.
Summary 0001319: Specify when to print text for a and r commands after d and D commands
Description 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.
Desired Action 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.

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.
Tags tc3-2008
Attached Files

- Relationships

-  Notes
(0004740)
geoffclare (manager)
2020-01-20 10:13
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.

(0005038)
Don Cragun (manager)
2020-10-08 16:25

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-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
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 Note: 0005038.
2020-12-04 16:33 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed


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