HomeFreeBSD

sed(1): add LEGACY_BSDSED_COMPAT compile-time flag.

Description

sed(1): add LEGACY_BSDSED_COMPAT compile-time flag.

In r297602, which included a __FreeBSD_version bump to 1100105, we changed
sed 'i' and 'a' from discarding whitespaces to conform with what GNU and
sysvish sed do.

There are arguments in favor of keeping the old behavior but the new
behavior is also useful for migration purposes. It seems important to at
least consider the case of developers depending on the previous behavior,
so add a CFLAG to enable the old behaviour.

PR: 213474
MFC after: 5 days

Details

Provenance
pfgAuthored on
Parents
rS308313: MFC 296950,296951: Configuration updates.
Branches
Unknown
Tags
Unknown