News for hackers. Stuff that matters.
Re:Why Create a New Unix Shell? by xiaq on Wednesday January 31, 2018 @11:06PM (#16279575)
Interprocess pipeline is a difficult problem only because there is no standard encoding. Elvish has pairs of builtin commands like from-json and to-json; so if your command takes JSON and writes JSON, you can use it in a pipeline like:

    ... | to-json | your-command | from-json | ...
It is also trivial to wrap it into a function like:

    fn f { to-json | your-command | from-json }

There are no comments on this comment yet.