On Mon, 7 Jun 2004, Jonathan Worthington wrote: > "Dan Sugalski" <[EMAIL PROTECTED]> wrote: > > On Mon, 7 Jun 2004, Leopold Toetsch wrote: > > > > > Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > > > * there is no opcode to use it, e.g.: > > > > > > > Pio = backtick Scmd, Pargv, Iflags > > > > > > I've now integrated that into the C<open> opcode: > > > > > > .local pmc pipe > > > pipe = open "/bin/cat -n", "|-" > > > > > > # or > > > > > > pipe = open "/bin/ls -l", "-|" > > > > > > There is still no good way to pass arguments to commands - currently the > > > given command gets split at spaces, which is of course broken with > > > respect to quoted args. > > > > Then lets add: > > > > backtick Pfilehandle, Scommand, Imode > > backtick Pfilehandle, Scommand, Imode, Pargarray > > > > to the ops list. > Might there be a better name for this op? I know backtick isn't just > Perl-ish; it's used in UNIX shells too. But for someone from a non-UNIX, > non-Perl background, backtick may not mean a lot. That said, I'm not sure I > can think of a metter name.
Yeah, good point. pipeopen maybe? (Though then that gets confused with regular pipes) childproc? If it weren't so darned fundamental to the languages we care about I'd just throw the thing into the standard library and punt on it entirely... Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk