The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] [TUHS} Qed vs ed
@ 2021-02-01  4:24 M Douglas McIlroy
  0 siblings, 0 replies; 2+ messages in thread
From: M Douglas McIlroy @ 2021-02-01  4:24 UTC (permalink / raw)
  To: tuhs

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

> fairly early in PDP-11 development ed gained three features: & in the
> rhs of substitutions plus k and t commands.  (I'm not sure about & ....

Oh, and backreferencing, which took regular expressions way up the
complexity hierarchy--into NP-complete territory were it not for the limit
of 9 backreferenced substrings. (Proof hint: reduce the knapsack problem to
an ed regex.)

Also g and s were generalized to allow escaped newlines.

I was indeed wrong about &. It was in v1.

Doug

[-- Attachment #2: Type: text/html, Size: 687 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [TUHS] [TUHS} Qed vs ed
@ 2021-01-31 15:26 M Douglas McIlroy
  0 siblings, 0 replies; 2+ messages in thread
From: M Douglas McIlroy @ 2021-01-31 15:26 UTC (permalink / raw)
  To: tuhs

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

I used Ken's qed in pre-Unix days. I understand its big departure from the
original was regular expressions. Unix ed was the same, with
multi-file capability dropped. Evidently the lost function was not much
missed, for it it didn't come back when machines got bigger. I remember
that fairly early in PDP-11 development ed gained three features: & in the
rhs of substitutions plus k and t commands. (I'm not sure about &--that was
50 years ago.).

 With hindsight it's surprising that a "minimalist" design had m but not t,
for m can be built from t but not vice versa. A cheat sheet for multics qed
is at h
<http://www.bitsavers.org/pdf/honeywell/multics/swenson/6906.multics-condensed-guide.pdf>
ttp://
www.bitsavers.org/pdf//honeywell/multics/swenson/6906.multics-condensed-guide.pdf.
It had two commands I don't remember: sort(!) and transform, which I assume
is like y in sed.

Doug

[-- Attachment #2: Type: text/html, Size: 1172 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-01  4:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01  4:24 [TUHS] [TUHS} Qed vs ed M Douglas McIlroy
  -- strict thread matches above, loose matches on Subject: below --
2021-01-31 15:26 M Douglas McIlroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).