[#]ed is finally self-conscious! I somehow missed that part of documentation where it says that "w" command can write to bang-prefixed command, feeding buffer contents as standard input to this command. Which means: #ed can evaluate #ed commands in its own buffer, by calling another instance of #ed on them!
With this, the sky is the limit to what I can do. I already re-implemented my (disappointingly) shell-heavy #grep version, as pure #ed script: https://aartaka.me/scripts/grep.ed
=> More informations about this toot | View the thread | More toots from aartaka@merveilles.town
=> View grep tag | View ed tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini