Package: mawk
Version: 1.3.3-11
Severity: normal
mawk claims to comply with Posix 1003.2. I can't check it directly, but
checking instead SUSv2 (which I think equals Posix concerning Awk), it
mandates that regular expressions support the interval repetition count
feature. I am talking about {m}/{m,}/{m,n} at the place where you use ?, *
or +.
The sample program:
BEGIN {
s="abacab"
r1="(a[bc]){2,3}"
r2="(a[bc])(a[bc])+"
print s~r1, s~r2
}
should print "1 1" but it doesn't.
This is both a program bug (incomplete regexp implementation) and a
documentation bug (not 100% Posix compatible, should be added to the BUGS
section unless corrected).
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.15-1-k7-smp
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages mawk depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
-- no debconf information
--
Hope this helps,
Fabien.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]