View Issue Details

IDProjectCategoryView StatusLast Update
00002541003.1(2008)/Issue 7Shell and Utilitiespublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionawk
Page Number2430
Line Number77100
Interp StatusApproved
Final Accepted TextSee 0000254:0000425
Summary0000254: awk -f -
DescriptionThe standard requires that "awk -f -" treats the '-' as a pathname.
However, existing practice in all versions of awk that I have tried
is that it reads the program from standard input, not from a file
named '-'.
Desired ActionAfter

    Specify the pathname of the file progfile containing an awk program.

add

    A pathname of '-' shall denote the standard input.

At line 77143 change

    The standard input shall be used only if no file operands are
    specified, or if a file operand is '-';

to

    The standard input shall be used only if no file operands are
    specified, or if a file operand is '-', or if a progfile
    option-argument is '-';
Tagstc1-2008

Activities

Don Cragun

2010-06-03 15:22

manager   bugnote:0000425

The standard states that implementations must not used standard input when a progfile option argument of "-" is given, 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 historic practice.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
Make the changes suggested by the submitter in the Desired Action field above.

ajosey

2010-07-30 09:27

manager   bugnote:0000507

Comments/objections on the proposed interpretation are due by 31 Aug 2010

Issue History

Date Modified Username Field Change
2010-05-17 11:43 geoffclare New Issue
2010-05-17 11:43 geoffclare Status New => Under Review
2010-05-17 11:43 geoffclare Assigned To => ajosey
2010-05-17 11:43 geoffclare Name => Geoff Clare
2010-05-17 11:43 geoffclare Organization => The Open Group
2010-05-17 11:43 geoffclare Section => awk
2010-05-17 11:43 geoffclare Page Number => 2430
2010-05-17 11:43 geoffclare Line Number => 77100
2010-05-17 11:43 geoffclare Interp Status => ---
2010-06-03 15:22 Don Cragun Note Added: 0000425
2010-06-03 15:22 Don Cragun Status Under Review => Interpretation Required
2010-06-03 15:22 Don Cragun Resolution Open => Accepted
2010-06-03 15:23 Don Cragun Interp Status --- => Pending
2010-06-03 15:23 Don Cragun Final Accepted Text => See 0000254:0000425
2010-07-30 09:27 ajosey Interp Status Pending => Proposed
2010-07-30 09:27 ajosey Note Added: 0000507
2010-09-03 06:22 ajosey Interp Status Proposed => Approved
2010-09-24 16:04 geoffclare Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Interpretation Required => Closed