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
F166608890: D47377.id146117.diff
Fri, Aug 14, 8:43 PM
Unknown Object (File)
Tue, Aug 11, 9:39 PM
Unknown Object (File)
Sat, Aug 8, 11:04 PM
Unknown Object (File)
Sat, Aug 8, 5:25 PM
Unknown Object (File)
Sat, Aug 8, 5:04 PM
Unknown Object (File)
Sat, Aug 8, 3:49 PM
Unknown Object (File)
Sat, Aug 8, 1:39 PM
Unknown Object (File)
Sat, Aug 8, 10:00 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