|
From: | Kon Lovett |
Subject: | Re: [Chicken-users] Adding (system->string) somewhere |
Date: | Tue, 15 Jan 2008 16:56:38 -0800 |
On Jan 15, 2008, at 4:43 PM, Zbigniew wrote:
On Jan 15, 2008 6:08 PM, Kon Lovett <address@hidden> wrote:[Zb wrote:] If with-input-from-pipe were tooptionally take a list as first argument, and (if a list) open a pipebypassing the shell in this manner, that might be something worth looking into.osprocess does this. Whether it is a "nice wrapper" is arguable.IIRC osprocess does what process does, just gives you more control--but both are multi-step processes.
Using the 'collect?:' option it can be a "one-step' process.
I was thinking a wrapper along the lines of the with-* procedures. Or modifying open-input-pipe to call ##sys#process instead of popen() when there's a list involved. It's useful enough in Perl that there's a special syntax for this, and I have used it heavily. If I ever need it in Chicken I'll make an egg.
Probably cleaner.
_______________________________________________ Chicken-users mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/chicken-users
Best Wishes, Kon
[Prev in Thread] | Current Thread | [Next in Thread] |