Page MenuHomeFreeBSD

sed: fix commandline-given expression when -e is not used
ClosedPublic

Authored by cracauer on Fri, Nov 1, 12:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 1:12 PM
Unknown Object (File)
Thu, Nov 7, 3:43 AM
Unknown Object (File)
Thu, Nov 7, 3:39 AM
Unknown Object (File)
Tue, Nov 5, 5:30 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