News for hackers. Stuff that matters.
Re:The xonsh shell by rkeene2 on Friday May 13, 2016 @12:34AM (#11688646)
You can do this with Tcl ! I wrote an extension called "pipethread" to make UNIX shell pipelining more natural. It uses threads instead of processes but otherwise operates pretty similarly.

Example: set lsOutput [pipethread::pipe exec ls | exec tac | foreach line { puts $outchan "[string length $line]:$line" } | { gets $inchan line; puts $outchan $line }]

Usage: https://chiselapp.com/user/rkeene/repository/pipethread/arti...

There are no comments on this comment yet.