sed is broken under freebsd?

Peter Jeremy peterjeremy at
Wed Jan 12 22:01:34 UTC 2011

On 2011-Jan-12 02:32:52 +0100, Oliver Pinter <oliver.pntr at> wrote:
>The freebsd versions of sed contained a bug/regression, when \n char
>can i subsitue, gsed not affected with this bug:

gsed contains non-standard extensions and you have been suckered into
using them.  Try using 'gsed --posix' and/or setting POSIXLY_CORRECT.
This is part of the GNU/FSF "lockin" policy that encourages people
to use their non-standard extensions to ensure that you don't have
any choice other than to use their software.

Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-stable mailing list