View Issue Details

IDProjectCategoryView StatusLast Update
0001451Issue 8 draftsShell and Utilitiespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityCommentTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
Product VersionDraft 1.1 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionawk
Page Number2395
Line Number78089
Final Accepted Text0001451:0005351
Summary0001451: awk ARGV description addition about -v is problematic
DescriptionBug 0000974 added notes to the descriptions of ARGC and ARGV saying it is unspecified whether alterations to ARGC and to elements of ARGV can be made using the -v option.

The one for ARGC is fine, but the one for ARGV is problematic. This is because the standard places a requirement on applications to ensure that the -v option-argument has a variable name to the left of the '='. Thus it cannot be used to assign values to array elements.

Note that since bug 974 was tagged tc3-2008, this bug should also be tagged tc3-2008 despite being reported against Issue 8 draft 1.1.
Desired ActionChange:
It is unspecified whether this alteration to ARGV can be made using the -v option.
to:
Note that this alteration cannot be made using either the assignment operand or the -v option, because an operand with a '[' before '=' is treated as a file operand, not an assignment operand, and applications are required to ensure that the -v option-argument has the same form as an assignment operand. (See the OPTIONS and OPERANDS sections.)

Tagsissue8

Relationships

related to 0000974 Closed 1003.1(2013)/Issue7+TC1 several issues with awk's ARGC/ARGV 

Activities

geoffclare

2021-02-11 11:08

manager   bugnote:0005231

Credit to Arnold Robbins for catching this.

rhansen

2021-05-06 15:18

manager   bugnote:0005351

Change:
It is unspecified whether this alteration to ARGV can be made using the -v option.
to:
Note that alterations to ARGV cannot be made using either the assignment operand or the -v option, because an operand with a '[' before '=' is treated as a file operand, not an assignment operand, and applications are required to ensure that the -v option-argument has the same form as an assignment operand. (See the OPTIONS and OPERANDS sections.)

nick

2021-05-06 15:21

manager   bugnote:0005352

Note tagged as issue 8 since 0000974 is an approved interpretation

Issue History

Date Modified Username Field Change
2021-02-11 11:07 geoffclare New Issue
2021-02-11 11:07 geoffclare Name => Geoff Clare
2021-02-11 11:07 geoffclare Organization => The Open Group
2021-02-11 11:07 geoffclare Section => awk
2021-02-11 11:07 geoffclare Page Number => 2395
2021-02-11 11:07 geoffclare Line Number => 78089
2021-02-11 11:08 geoffclare Note Added: 0005231
2021-05-06 15:10 nick Relationship added related to 0000974
2021-05-06 15:18 rhansen Note Added: 0005351
2021-05-06 15:19 rhansen Final Accepted Text => 0001451:0005351
2021-05-06 15:19 rhansen Status New => Resolved
2021-05-06 15:19 rhansen Resolution Open => Accepted As Marked
2021-05-06 15:20 rhansen Tag Attached: issue8
2021-05-06 15:21 nick Note Added: 0005352
2021-05-11 09:38 geoffclare Status Resolved => Applied
2024-06-11 09:12 agadmin Status Applied => Closed