← Commit list

7379cd1ca

Denys Vlasenko
Denys Vlasenko
2010-04-04
FAILED Duration: 31s

Subject

awk: add comment about fixing bug 1333

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/awk.c+2 -0
@@ -2060,6 +2060,8 @@ static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest, int
//gsub(/\<b*/,"") on "abc" will reach this point, advance to "bc"
//... and will erroneously match "b" even though it is NOT at the word start.
//we need REG_NOTBOW but it does not exist...
+//TODO: if EXTRA_COMPAT=y, use GNU matching and re_search,
+//it should be able to do it correctly.
/* Subtle: this is safe only because
* qrealloc allocated at least one extra byte */
resbuf[residx] = *sp;