original-mawk
original-mawk copied to clipboard
RLENGTH is wrong for regexes with two identical consecutive '?' matches
Consider this testcase:
match($1, /foobar1?1?/) {
print RLENGTH
}
$ echo foobar11 | mawk -f test.awk
7
bwk's awk, gawk as well as mawk when compiled with system regex instead of the internal regex engine print the correct result 8.
thanks - I can reproduce this.
fixed in 20240819