freebsd-dev/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 Revert r337419. 2018-08-16 18:35:39 +00:00
defs.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
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 sed: compile with the default WARNS level. 2018-07-30 19:41:54 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
misc.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
POSIX
process.c sed: Fix -i option behavior with 'q' command. 2018-08-29 17:09:03 +00:00
sed.1 Fix the last example to really replace all occurrences of the search string 2017-04-24 16:52:26 +00:00