xref: /freebsd/contrib/one-true-awk/testdir/t.match1 (revision 35c87c070a2d04f06c56578b0a4b2e9c13f62be5)
1NF > 0 && match($NF, $1) {
2	print $0, RSTART, RLENGTH
3	if (RLENGTH != length($1))
4		printf "match error at %d: %d %d\n",
5			NR, RLENGTH, RSTART >"/dev/tty"
6}
7