[comp.unix.microport] Broken Awk??!?

mdm@cocktrice.UUCP (Mike Mitchell) (06/23/89)

Is awk known to be broken on V/AT? I have the following file which exhibits
bizzare behavior. There is a file with three lines and the awk command which
follows. I do not understand what is happening.

'file' contains

	1 <mid>
	2 <midx> <mid>
	3 <midy>

I use the command

	awk '$3 !~ /^(<.*>)?$/' file

I get the output

	1 <mid>

If things were working consistantly, I would expect the output

	1 <mid>
	3 <midy>

If things were working as I read the manual, I would expect the output

		(NOTHING!)

Is my expression hurt, or is awk hurt?
-- 
Mike Mitchell                   BELL    H (505) 471-7639 W (505) 473-4482
2020 Calle Lorca #43            ARPA    mdm@cocktrice.UUCP
Santa Fe, NM 87505              UUCP    ...!uunet!dmk3b1!cocktrice!mdm