On Jan 15, 2008, at 4:43 PM, Zbigniew wrote:

On Jan 15, 2008 6:08 PM, Kon Lovett <[EMAIL PROTECTED]> wrote:
[Zb wrote:]
If with-input-from-pipe were to
optionally take a list as first argument, and (if a list) open a pipe
bypassing 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
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Best Wishes,
Kon




_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to