DragonFly bugs List (threaded) for 2009-08
DragonFly BSD
DragonFly bugs List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue1306] sed(1) adds trailing newline


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 12 Aug 2009 14:44:26 +0200

Alex Hornung (via DragonFly issue tracker) wrote:
Alex Hornung <ahornung@gmail.com> added the comment:

Standard[1] dictates: "Whenever the pattern space is written to standard output or a named file, sed shall immediately follow it with a <newline>."

In my personal opinion, though, I'd prefer to see a gnu-compatible sed, even if that means breaking standards compliance.

The standard is exceptionally clear on this, and I don't quite see why we should introduce a regression for an insignificant script which assumes sed is operating in a non-conforming way. Their shell script is wrong.


cheers
 simon



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]