[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 24 Oct 2000 01:58:48 -0400
Hi gawk fans:
For gawk3.0.6 running on Tru64 UNIX V5.0a, compiled with gcc2.8.1,
notice the following commands:
$ gawk '/*/' /dev/null
$ print $?
I believe the gawk line should fail. The regular expression is
missing an operand. The '*' must modify something, but it doesn't.
The following two sequences seem to be equivalent, but they shouldn't
$ gawk '/*/'
$ gawk '/\*/'
They both seem to search for a literal '*'.
What do you think?
Robert Katz <=