HomeFreeBSD

sed: fix commandline-given expression when -e is not used

Description

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

Details

Provenance
cracauerAuthored on Thu, Nov 7, 3:40 AM
kevansCommitted on Thu, Nov 7, 3:40 AM
Reviewer
0mp
Differential Revision
D47377: sed: fix commandline-given expression when -e is not used
Parents
rG5036d9652a57: rtlbtfw: Firmware loader for Realtek 87XX/88XX bluetooth USB adaptors
Branches
Unknown
Tags
Unknown