1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/usr.bin/sed
Martin Cracauer 0552fdc62c sed: fix commandline-given expression when -e is not used
Make explicit sed commands (first on commandline) behave the same
as those given with -e.

Without this patch the following two commands behave differently,
the second one being wrong:
echo ab | sed -e $'1 i\\\n--'
echo ab | sed $'1 i\\\n--'

Reviewed by:	0mp, des, kevans
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D47377
2024-11-06 21:40:45 -06:00
..
tests sed: fix commandline-given expression when -e is not used 2024-11-06 21:40:45 -06:00
compile.c usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
defs.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
extern.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
main.c sed: fix commandline-given expression when -e is not used 2024-11-06 21:40:45 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.host Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Additions to targets/pseudo/host-tools 2023-04-27 14:16:49 -07:00
misc.c usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
POSIX usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
process.c usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
sed.1 usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00