bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: ed: p and pppppp same


From: Paul Eggert
Subject: Re: ed: p and pppppp same
Date: Tue, 28 Sep 2004 17:08:30 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Dan Jacobson <address@hidden> writes:

> In ed(1),
> pppppppppppp
> and
> p
> do the same thing, print one line.

In traditional ed, "p" and "pp" both print one line,
and "ppp", "pppp", etc. are errors.

POSIX requires support for both "p" and "pp", and
deliberately doesn't specify whether "pp" writes
the line once or twice.

So, the GNU behavior is a compatible extension to traditional
behavior, and conforms to POSIX here.

I'm not sure whether all this mess is worth documenting.  ed hasn't
changed for 10 years, and I'm not sure who's maintaining it now, if
anybody.




reply via email to

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