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
0001451 [Issue 8 drafts] Shell and Utilities Comment Clarification Requested 2021-02-11 11:07 2021-02-11 11:08
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Open  
Status New   Product Version Draft 1.1
Name Geoff Clare
Organization The Open Group
User Reference
Section awk
Page Number 2395
Line Number 78089
Final Accepted Text
Summary 0001451: awk ARGV description addition about -v is problematic
Description Bug 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 Action Change:
It is unspecified whether this alteration to ARGV can be made using the -v option.
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.)

Tags No tags attached.
Attached Files

- Relationships

-  Notes
geoffclare (manager)
2021-02-11 11:08

Credit to Arnold Robbins for catching this.

- 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

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