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)
Mon, Nov 24, 4:04 PM
Unknown Object (File)
Sun, Nov 23, 2:12 PM
Unknown Object (File)
Wed, Nov 19, 11:44 AM
Unknown Object (File)
Nov 7 2025, 10:04 AM
Unknown Object (File)
Nov 7 2025, 3:24 AM
Unknown Object (File)
Nov 7 2025, 2:24 AM
Unknown Object (File)
Nov 6 2025, 12:53 PM
Unknown Object (File)
Nov 6 2025, 1:10 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60317
Build 57201: arc lint + arc unit