diff options
-rw-r--r-- | editors/awk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c index 3ba1a422d..83c5b47ce 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -2060,6 +2060,8 @@ static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest, int | |||
2060 | //gsub(/\<b*/,"") on "abc" will reach this point, advance to "bc" | 2060 | //gsub(/\<b*/,"") on "abc" will reach this point, advance to "bc" |
2061 | //... and will erroneously match "b" even though it is NOT at the word start. | 2061 | //... and will erroneously match "b" even though it is NOT at the word start. |
2062 | //we need REG_NOTBOW but it does not exist... | 2062 | //we need REG_NOTBOW but it does not exist... |
2063 | //TODO: if EXTRA_COMPAT=y, use GNU matching and re_search, | ||
2064 | //it should be able to do it correctly. | ||
2063 | /* Subtle: this is safe only because | 2065 | /* Subtle: this is safe only because |
2064 | * qrealloc allocated at least one extra byte */ | 2066 | * qrealloc allocated at least one extra byte */ |
2065 | resbuf[residx] = *sp; | 2067 | resbuf[residx] = *sp; |