retitle 65617 mawk: please implement POSIX-style character classes tags 65617 - patch thanks
Hi Herbert and others, herb...@gondor.apana.org.au wrote: > mawk does not seem to understand POSIX character classes in regular > expressions, this makes it unsuitable as /usr/bin/awk. > > $ echo 0 | mawk '/^[[:digit:]]+/ { print }' > $ echo 0 | gawk '/^[[:digit:]]+/ { print }' > 0 > $ Thomas Dickey implemented POSIX-style character classes among other things in mawk 1.3.3-20090727. The CVS revision number increased by more than one, so maybe Thomas could provide a more minimal patch. The unsplit patch is at http://git.debian.org/?p=collab-maint/mawk.git;a=commitdiff;h=cb2ac5fd#patch33 That patch breaks regexps such as [[]. Fixed by http://git.debian.org/?p=collab-maint/mawk.git;a=commitdiff;h=2c33a83f (collect_RE(), do_class(): handle [ in character classes properly, 2010-01-24), fix applied upstream in mawk 1.3.4-20100131. If you would like a minimal diff for character class support, I can work on it, but no promises that I’ll have time soon. The above should give enough pointers that anyone who is interested could make progress... Cheers, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org