RCR for child execution

Some suggestions for names for
system2(in, out, err, “command”)

exchange(in, out, err, “command”)

trying to convey idea of two way exchange of data, probably not very

good as really there are 3 streams

or

capture(in, out, err, “command”)

trying to convey idea of what is happening to in, out and err, but

doesn’t give idea that is useful for running external programs like the
word ‘system’ does.

or

surround(in, out, err, “command”)

similar idea to ‘capture’ with same drawback of not looking like it

would run an external program

Also all words quite common so could break existing scripts.

All the best,

jon

···

-----Original Message-----
From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org]
Sent: 12 May 2003 19:18
To: ruby-talk ML
Subject: Re: RCR for child execution

Hi,

In message “Re: RCR for child execution” on 03/05/13, Brian Candler B.Candler@pobox.com writes:

If you want a version of Ruby’s “system” command which captures
stderr/stdout into a string, you can write your own easily. I suggested
the shorthand

%X{command}

to run a command and capture both stdout and stderr into a string (the
RCR
from which this thread gets its subject)

I don’t like this notation. But I like the idea of spawning child
with its stdin/out/err replaced. It should be something like

system2(in, out, err, “command”)

but it needs better name.

						matz.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp


Any views or personal opinions expressed within this email may not be those of Talis Information Ltd.
The content of this email message and any files that may be attached are confidential, and for the usage of the intended recipient only. If you are not the intended recipient, then please return this message to the sender and delete it. Any use of this e-mail by an unauthorised recipient is prohibited.