Subject: bug in NetBSD and OpenBSD awk
To: None <tech-userlevel@NetBSD.org>
From: Aleksey Cheusov <cheusov@tut.by>
List: tech-userlevel
Date: 04/29/2006 23:55:46
--=-=-=

NetBSD 3-stable and OpenBSD-3.8 /usr/bin/awk work incorrectly.
The following program


--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=test.awk
Content-Transfer-Encoding: base64
Content-Description: script

IyEvdXNyL2Jpbi9hd2sgLWYKCi9eW15fXVteIF0qX05OSUZPKFsgXStbXl9dW14gXSpfKENDfElO
UnxKSkZPfEpKTUF8SkpQR3xOTklGR3xOTklGT3xOTklNUEd8Tk5JTVJ8Tk5JTkd8UFAzRkR8UFFJ
Tk98UFFNT3xQU0ZSfFJRfFRDfFZJSVIzfFZQSVBOfFZQTElQRnxOT1RBR3xSUVIpKSokLwo=
--=-=-=


doesn't match the following input


--=-=-=
Content-Disposition: attachment; filename=test.txt
Content-Description: input

1_NNIFO 1_PSFR 1_JJFO 1_NNIFO 1_INR 1_NNIMR 1_CC 1_NNING 1_RQ 1_VPLIPF 1_NNIFG 1_JJPG 1_NNIMPG 1_PQINO 1_VPIPN 1_PP3FD 1_JJMA 1_PQMO 1_TC 1_VIIR3

--=-=-=


Solaris-9 awk, gaw, nawk, heirloom posix/[n]awk and nawk work correctly.
I made both input and regexp as small as it is possible.
Should I send-pr or it is another magic?

-- 
Best regards, Aleksey Cheusov.

--=-=-=--