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 6, 3:54 AM
Unknown Object (File)
Dec 20 2025, 4:47 AM
Unknown Object (File)
Dec 15 2025, 9:50 PM
Unknown Object (File)
Nov 24 2025, 4:04 PM
Unknown Object (File)
Nov 23 2025, 2:12 PM
Unknown Object (File)
Nov 19 2025, 11:44 AM
Unknown Object (File)
Nov 7 2025, 10:04 AM
Unknown Object (File)
Nov 7 2025, 3:24 AM
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