freebsd-skq/usr.bin/sed
Mateusz Piotrowski f9ab72bb47 Read commands from stdin when -f - is passed to sed(1)
This patch teaches sed to interpret a "-" in a special way when given
as an argument to the -f flag.

This behavior is also present in GNU sed.

PR:		244872
Tested by:	antoine (exp-run)
Reviewed by:	pfg, tobik (older version)
Approved by:	pfg (src)
Relnotes:	yes
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24079
2020-06-10 19:23:58 +00:00
..
tests Read commands from stdin when -f - is passed to sed(1) 2020-06-10 19:23:58 +00:00
compile.c sed: attempt to learn about hex escapes (e.g. \x27) 2020-06-07 04:32:38 +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 Read commands from stdin when -f - is passed to sed(1) 2020-06-10 19:23:58 +00:00
Makefile pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +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 Read commands from stdin when -f - is passed to sed(1) 2020-06-10 19:23:58 +00:00