View Issue Details

IDProjectCategoryView StatusLast Update
00014331003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:08
Reporterandras_farkas Assigned To 
PrioritynormalSeverityEditorialTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
NameAndras Farkas
Organization
User Reference
Sectionpr
Page Number
Line Number
Interp StatusApproved
Final Accepted Text0001433:0005282
Summary0001433: The use of carriage-return in pr
DescriptionOn
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pr.html
I see that -p waits for <carriage-return>.

Is this intentional?

I see that OpenSolaris (System V), Unix 10th edition, FreeBSD, and NetBSD pr wait for <newline> ('\n') and not <carriage-return>. I did not find an implementation which waits for <carriage-return>. Also, in grepping the entire POSIX standard for carriage-return and \r I find very few uses of it, while uses of <newline> for user input are universal.
Desired ActionFigure out whether pr should truly wait for <carriage-return> or not.
Tagstc3-2008

Activities

Don Cragun

2021-03-18 15:41

manager   bugnote:0005282

Interpretation response
------------------------
The standard states thar pr waits for <carriage-return>, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.

Rationale:
-------------
This is not the way any implementation works and conflicts with similar requirements for other utilities.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------

On page 3108 line 103918 section pr, change:
<carriage-return>
to:
<newline>

agadmin

2021-03-19 11:35

administrator   bugnote:0005288

Interpretation proposed: 19 March 2021

agadmin

2021-04-22 08:42

administrator   bugnote:0005326

Interpretation Approved: 22 April 2021

Issue History

Date Modified Username Field Change
2020-12-12 00:16 andras_farkas New Issue
2020-12-12 00:16 andras_farkas Name => Andras Farkas
2020-12-12 00:16 andras_farkas Section => pr
2021-03-18 15:41 Don Cragun Interp Status => ---
2021-03-18 15:41 Don Cragun Note Added: 0005282
2021-03-18 15:41 Don Cragun Status New => Interpretation Required
2021-03-18 15:41 Don Cragun Resolution Open => Accepted As Marked
2021-03-18 15:41 Don Cragun Final Accepted Text => See bugnote 5282.
2021-03-18 15:42 Don Cragun Tag Attached: tc3-2008
2021-03-18 15:42 Don Cragun Interp Status --- => Pending
2021-03-19 11:35 agadmin Interp Status Pending => Proposed
2021-03-19 11:35 agadmin Final Accepted Text See bugnote 5282. => 0001433:0005282
2021-03-19 11:35 agadmin Note Added: 0005288
2021-04-22 08:42 agadmin Interp Status Proposed => Approved
2021-04-22 08:42 agadmin Note Added: 0005326
2021-04-27 09:13 geoffclare Status Interpretation Required => Applied
2024-06-11 09:08 agadmin Status Applied => Closed