Page MenuHomeFreeBSD

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

Authored by cracauer on Nov 1 2024, 12:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 5:04 AM
Unknown Object (File)
Fri, Jan 17, 2:52 PM
Unknown Object (File)
Dec 22 2024, 6:21 AM
Unknown Object (File)
Dec 8 2024, 10:24 AM
Unknown Object (File)
Nov 30 2024, 11:51 AM
Unknown Object (File)
Nov 26 2024, 2:17 AM
Unknown Object (File)
Nov 23 2024, 1:39 AM
Unknown Object (File)
Nov 8 2024, 1:12 PM
Subscribers

Details

Summary

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--'

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable