Norman Wilsonoclsc@mstdn.ca
Sep 24, 2026, 8:43 AM@me Toronto qed (descended from ed in the late 1970s, not the 1960s editor that inspired ed) has three commands for exchanging text with other programs:
>command # send to command's standard input
<command # receive from standard output
|command # send to stdin, read from stdout, replacing original addressed lines
Of course > and | take an address range and < a single address, like w and r.
I use | quite often either in ed or in sam; latter written by the guy from whom I caught the qed bug.
Implementing | takes some thought to avoid deadlock if pipes fill and block. Qed does it by spawing a temporary process to do the writing, while the main process reads into the buffer.