]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sed(1): add LEGACY_BSDSED_COMPAT compile-time flag.
authorpfg <pfg@FreeBSD.org>
Fri, 4 Nov 2016 20:49:59 +0000 (20:49 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 4 Nov 2016 20:49:59 +0000 (20:49 +0000)
commit0f62b80bb28b27b93df83d69279eb6a6e7201d3d
tree2ab176f0184c1da5a2d8d7121936d8572cc4775a
parent11b1ab4d35132483dc6cc45e3b9f4c6ef701a7ef
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
usr.bin/sed/compile.c