bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GAWK does not like "default" as an argument name


From: Nielsen, Dan \(GE, Corporate\)
Subject: GAWK does not like "default" as an argument name
Date: Sun, 30 Jul 2006 14:59:26 -0400

Mr. Robbins:

I don't know if someone else has already reported this. Perhaps it has already 
been fixed. 

environment: various gawk version under Microsoft Windows 2000

Regards,
Dan Nielsen


source:

# ZERROR7.AWK - GAWK doesn't like "default" in argument list
# Change "default" to "Default" or "_default" and it works fine.
# How to run: GAWK -f C:\AWK\ZERROR7.AWK
BEGIN { x() }
function x(default) { printf("ok") }


execution:

GAWK_3_0_3  -f C:\AWK\ZERROR7.AWK
ok
GAWK_3_1_0  -f C:\AWK\ZERROR7.AWK
ok
GAWK_3_1_3A -f C:\AWK\ZERROR7.AWK
gawk_3_1_3a: C:\AWK\ZERROR7.AWK:19: function x(default) { printf("ok") }
gawk_3_1_3a: C:\AWK\ZERROR7.AWK:19:            ^ syntax error

GAWK_3_1_4  -f C:\AWK\ZERROR7.AWK
gawk_3_1_4: C:\AWK\ZERROR7.AWK:19: function x(default) { printf("ok") }
gawk_3_1_4: C:\AWK\ZERROR7.AWK:19:            ^ syntax error

GAWK_3_1_5  -f C:\AWK\ZERROR7.AWK
gawk_3_1_5: C:\AWK\ZERROR7.AWK:19: function x(default) { printf("ok") }
gawk_3_1_5: C:\AWK\ZERROR7.AWK:19:            ^ syntax error





reply via email to

[Prev in Thread] Current Thread [Next in Thread]