[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fatal pgawk error: unexpected type Node_regex in prec_level
From: |
Hermann Peifer |
Subject: |
fatal pgawk error: unexpected type Node_regex in prec_level |
Date: |
Fri, 29 Jan 2010 18:02:31 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Arnold,
I noticed a weird behaviour of pgawk 3.1.7 under cygwin. Is this a bug,
feature or some Windows thing?
Regards, Hermann
# Everything works fine with gawk
$ gawk 'NR==FNR{a[$0];next}{ for (i in a) if (/The /) print }' list1 list2
The one
The one
The one
The three
The three
The three
# Here I change the condition to "!/The /"
$ gawk 'NR==FNR{a[$0];next}{ for (i in a) if (!/The /) print }' list1 list2
two
two
two
# Everything works fine with pgawk here...
$ pgawk 'NR==FNR{a[$0];next}{ for (i in a) if (/The /) print }' list1 list2
The one
The one
The one
The three
The three
The three
# ..but changing the condition to "!/The /" seems to trigger the error:
$ pgawk 'NR==FNR{a[$0];next}{ for (i in a) if (!/The /) print }' list1 list2
two
two
two
pgawk: (FILENAME=list2 FNR=3) fatal: unexpected type Node_regex in
prec_level
$ cat list1
one
two
three
$ cat list2
The one
two
The three
- fatal pgawk error: unexpected type Node_regex in prec_level,
Hermann Peifer <=