freebsd-dev/usr.bin/sed
bde 1d0354c05e Yet^2 another fix for the line continuation bug.
The fundamental problem with the original code is that it accesses
p[-2] which is one before the beginning of the input buffer for
empty lines.  rev.1.6 just moved the problem from failures when
p[-2] happens to be '\\' to failures when it happens to be '\0'.
rev.1.5 was confused about the trailing newline and other things.

I went back to rev.1.5 and fixed it.  The result is the same as
Keith Bostic's final version in PR 1356 except it loses more
gracefully for excessively long input lines.
1996-07-17 12:18:51 +00:00
..
TEST BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
compile.c Yet^2 another fix for the line continuation bug. 1996-07-17 12:18:51 +00:00
defs.h Merge various fixes from NetBSD. This will allow the WordPerfect for 1995-08-16 05:56:44 +00:00
extern.h BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
main.c Fix spelling error (scipt -> script). 1995-02-23 17:46:35 +00:00
Makefile BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
misc.c BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
POSIX BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
process.c Merge various fixes from NetBSD. This will allow the WordPerfect for 1995-08-16 05:56:44 +00:00
sed.1 Submitted by: Philippe Charnier 1994-12-01 22:19:02 +00:00