Closed booniepepper closed 1 year ago
Added the <something>
as stream
Now possible in 1.2.0 with dt stream ...
A small example is available here: https://dt.plumbing/user-guide/tutorial/pipes-and-shebangs.html (Currently still a work in progress)
See thread started on Lobsters by @snej
https://lobste.rs/s/b8icdy/dt_duck_tape_for_your_unix_pipes#c_zx4lyn
There are some ideas in the thread... Right now I'm considering an interface something like:
Where
loop
just performs some action until it dies. The broken pipe will signaldt
that it's time to exit peacefully.I pulled out my Thesaurus for this one. Other words for
loop
that were considered and rejected:forever
-- Has some Too long, and also not semantically correct if the idea is to exit on EOF or broken pipe or aquit
/exit
within the quoterepeat
-- Semantically does not mean repeat many times. "Can you repeat that?" implies exactly one repetition, for example.cycle
-- Kinda similar toloop
. My Haskell experience makes me associatecycle
with converting a finite list to a lazy infinite list. There are some similarities toloop
even in etymology, but here I'm gonna prefer the shorter word that's more popular in compsci<something>
should be and implement itloop
command