[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a gawk-error
From: |
Steffen Schuler |
Subject: |
a gawk-error |
Date: |
20 Oct 2007 23:09:18 GMT |
User-agent: |
Pan/0.129 (Benson & Hedges Moscow Gold) |
Hello netlanders,
here we have a gawk error
< $ gawk -F: '{ match($1, $2); print substr($1, RSTART, RLENGTH) }'
< xyz:[yz]*
> xyz
correct would be
< $ gawk -F: '{ match($1, $2); print substr($1, RSTART, RLENGTH) }'
< xyz:[yz]*
>
It seems that match doesn't handle the asterisk correctly.
mawk does it correctly.
I use "GNU Awk 3.1.5" on "Linux ruth 2.6.18-ls-btoam2r2 #1 SMP Sun Jun 10
15:17:48 CEST 2007 x86_64 GNU/Linux" (with "libc-2.6.1.so")
Regards,
Steffen "goedel" Schuler
- a gawk-error,
Steffen Schuler <=