On Sat, Feb 27, 2016 at 6:42 PM, Antonio Diaz Diaz <anto...@gnu.org> wrote:
> What CVS? Latest code is 1.13.

Whoops, I was under the mistaken assumption that the code on Savannah
is the latest. It's very old and perhaps should be removed.
https://savannah.gnu.org/projects/ed/

> "The use of printing commands with printing suffixes (such as pn, lp, and so
> on) was made unspecified because BSD-based systems allow this, whereas
> System V does not."
>
> [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html

I think "unspecified" only relates to the output, specifically whether
things should be printed once or twice...?

The way the it's worded, commands are only allowed one suffix letter:
  "any command (except e, E, f, q, Q, r, w, and !) can be suffixed by
the letter l, n, or p"

(I'm interpreting "the letter" to mean "a *single* letter")

"pln" in your example should be invalid, and seems equivalent to the
valid "nl"/"ln" commands.

I don't have a strong opinion on this. I'm looking into ed internals,
came across this odd behavior, and thought about reporting it :)

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

Reply via email to