I have a script I'm trying to convert BEGIN { SPECIAL1 = 0 SPECIAL2 = 0 SPECIAL3 = 0 SPECIAL4 = 0 SPECIAL5 = 0 } { # Spec1Auth if ($49 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec2Auth if ($53 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec3Auth if ($57 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec4Auth if ($61 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } # Spec5Auth if ($65 !~ /^[[:space:]]?$/) { SPECIAL1 = 1 } } END { if (SPECIAL1 == 1) { print "SPECIAL1 PRESENT!" } if (SPECIAL2 == 1) { print "SPECIAL2 PRESENT!"...
detection of stdio.h functions fails
da.c:184:23: error: array subscript has type 'char'
Awka has an issue (I think) correctly initialising local variables in functions when they are not correctly defined. "Correctly defined" meaning as per the spec, where local variables are part of the argument list. The problem seems to show up in the recursive calling of functions, so bump() is causing the error. Change the function definition to function bump(array,n,max,val, tmp) { which defines the tmp var as being a local variable (the extra space just for readability and differentiating between...
Did you remember to use the -f flag before the input filename? It works for me when...
I get the same error message when running awka on parsecsv.awk from the comparisons...