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, Mar 4, 1:07 PM
Unknown Object (File)
Sat, Mar 1, 2:24 PM
Unknown Object (File)
Feb 17 2025, 3:24 PM
Unknown Object (File)
Feb 9 2025, 1:13 AM
Unknown Object (File)
Feb 8 2025, 6:47 AM
Unknown Object (File)
Feb 4 2025, 12:38 PM
Unknown Object (File)
Feb 4 2025, 12:36 PM
Unknown Object (File)
Feb 4 2025, 9:49 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