freebsd-dev/usr.bin/sed
Pedro F. Giffuni b6f5aa5715 sed: rewrite the main loop.
Rewrite the main loop of the "sed s/..." command, shortening it by ten
lines and simplifying it by removing the switch statement implementing
/g, /1, and /2 separately and repetitively.

This will be needed to bring a fix from OpenBSD later.

Obtained from:	OpenBSD (schwarze CVS Rev. 1.18)
MFC after:	3 weeks
2016-05-07 01:44:22 +00:00
..
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
compile.c kernel: use our nitems() macro when it is available through param.h. 2016-04-21 21:30:51 +00:00
defs.h sed(1): Don't force a newline on last line, if input stream doesn't have one 2014-08-08 17:29:01 +00:00
extern.h
main.c sed: fix pasto from previous r277802. 2015-01-27 19:46:19 +00:00
Makefile Partial revert of r276832: 2015-01-08 17:23:59 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
misc.c
POSIX
process.c sed: rewrite the main loop. 2016-05-07 01:44:22 +00:00
sed.1 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00