freebsd-nq/usr.bin/sed
Tony Finch 2f17b7e279 Fix substitution when the regex matches the zero-length string.
There are two bugs: in the s///g case, the substitution didn't occur
at the end of the line; in the s///N case, the code didn't count
forwards along the line properly. See the sg, s3, s4, and s5 tests
in src/tools/regression/usr.bin/sed/.

Reviewed by:	tjr
2003-06-04 15:31:55 +00:00
..
TEST Update another mention of <CR><CR> I missed the first time around (rev 1.2) 2002-07-04 05:16:19 +00:00
compile.c Ignore leading semicolons on commands; required by SUSv3. 2002-07-30 14:07:30 +00:00
defs.h
extern.h Make cspace()'s second argument const. Make `escapes' in lputs() const. 2002-07-08 06:00:55 +00:00
main.c Fix some bugs in in-place editing: 2002-07-30 19:42:18 +00:00
Makefile Kill superfluous blank line. 2002-06-17 08:21:53 +00:00
misc.c Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
POSIX
process.c Fix substitution when the regex matches the zero-length string. 2003-06-04 15:31:55 +00:00
sed.1 mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00