projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab288c
)
awk: add comment about fixing bug 1333
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Apr 2010 23:48:12 +0000
(
01:48
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Apr 2010 23:48:12 +0000
(
01:48
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/awk.c
patch
|
blob
|
history
diff --git
a/editors/awk.c
b/editors/awk.c
index 3ba1a422da9016f7ad7bfa879fcb73ff081e8a93..83c5b47ce6d6327b24e80ed70ba4feeef870aa6f 100644
(file)
--- 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
//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;