[Top][All Lists]

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

Re: [Bug-ed] Invalid command "ppp" accepted without error

From: Ori Avtalion
Subject: Re: [Bug-ed] Invalid command "ppp" accepted without error
Date: Sat, 27 Feb 2016 18:54:02 +0200

On Sat, Feb 27, 2016 at 6:42 PM, Antonio Diaz Diaz <address@hidden> 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.

> "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 :)

reply via email to

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