HardenedBSD/usr.bin/sed
Mark Johnston b480502648 sed: Fix -i option behavior with 'q' command.
Don't just exit when encountering the 'q' command if we edit file
inplace, and give mf_fgets() a chance to actually handle the
inplace case.

Also add a regression test.

Submitted by:	Yuri Pankov <yuripv@yuripv.net>
Approved by:	re (kib)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D16798
2018-08-29 17:09:03 +00:00
..
tests sed: Fix -i option behavior with 'q' command. 2018-08-29 17:09:03 +00:00
compile.c
defs.h
extern.h sed: Fix -i option behavior with 'q' command. 2018-08-29 17:09:03 +00:00
main.c sed: Fix -i option behavior with 'q' command. 2018-08-29 17:09:03 +00:00
Makefile
Makefile.depend
misc.c
POSIX
process.c sed: Fix -i option behavior with 'q' command. 2018-08-29 17:09:03 +00:00
sed.1