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)
Thu, Oct 9, 9:35 PM
Unknown Object (File)
Thu, Oct 2, 1:34 AM
Unknown Object (File)
Wed, Oct 1, 6:28 PM
Unknown Object (File)
Wed, Oct 1, 12:19 AM
Unknown Object (File)
Wed, Sep 24, 1:27 AM
Unknown Object (File)
Sep 4 2025, 12:19 AM
Unknown Object (File)
Aug 16 2025, 5:57 AM
Unknown Object (File)
Aug 13 2025, 5:03 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