Re: Proposal: Enhance Process.run() to accept functions for stdout/stderr

2014-11-03 Thread Chris Angelico
On Sat, Oct 18, 2014 at 6:52 PM, Chris Angelico ros...@gmail.com wrote: The code is now at branch rosuav/process_run_with_func; the equivalent to my above code would be simply: Process.run(({sox,-S,-m,-v,.5})+tracklist/1*({-v,.5})+({soundtrack}), ([stderr:lambda(string data)

Re: Proposal: Enhance Process.run() to accept functions for stdout/stderr

2014-11-03 Thread Chris Angelico
On Mon, Nov 3, 2014 at 10:55 PM, Per Hedbor () @ Pike (-) developers forum 10...@lyskom.lysator.liu.se wrote: Any views on this feature? (I just rebased the branch on top of current 8.1, no other changes.) Fears of breakage? Interest in using it? Anything? It looks good to me. And, yes, it is

Re: Proposal: Enhance Process.run() to accept functions for stdout/stderr

2014-11-03 Thread Peter Bortas @ Pike developers forum
If we continue with the drawn out stables it would be consistent to add it later, but avoiding patches until the current state can be released would be good.

Proposal: Enhance Process.run() to accept functions for stdout/stderr

2014-10-18 Thread Chris Angelico
I periodically find myself needing something similar to Process.run(), but processing intermediate output. Example: https://github.com/Rosuav/FrozenOST/blob/master/build.pike#L114 It needs to take whatever's sent to stderr, turn all \n into \r, and send it on to the real stdout. (Yes, it sends