bug-ed
[Top][All Lists]
Advanced

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

Re: [Bug-ed] Undocumented deviation from POSIX - current line after empt


From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] Undocumented deviation from POSIX - current line after empty insert
Date: Thu, 25 Feb 2016 18:21:03 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]