Hello,

Ori Avtalion wrote:
The POSIX standard for the Insert command states:

  the current line is set to the last inserted line or, if there was
none, to the addressed line

This goes against all implementations of ed that I can find, which set
the current line to be the inserted line, or, if no input was
provided, at a line before the addressed line.

Thanks for reporting this.

Maybe all implementations of ed behave the same in corner cases like this because all are based on the same Pascal code: B. W. Kernighan and P. J. Plauger: "Software Tools in Pascal", Addison-Wesley, 1981.

I'll look into this as time permits and will either make insert behave as POSIX requires, or document the real behavior. Also will fix the documentation for append.


Best regards,
Antonio.

_______________________________________________
bug-ed mailing list
bug-ed@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to