On Mon, Jun 07, 2004 at 09:32:27AM -0400, Dan Sugalski wrote:
: Yeah, good point. pipeopen maybe? (Though then that gets confused with
: regular pipes) childproc?
In Perl 5 backticks actually call the "readpipe" function, which is
even documented, will wonders never cease.
: If it weren't so darn
Robert Spier <[EMAIL PROTECTED]> wrote:
> It seems like an example of opcode bloat to me.
That's always the question: opcode or not.
> Especially as it should be possible to implement this with a piping
> open,
Yes. But C needs another variant that takes an argv array.
open Ppipe, Scmd, SFla
> 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...
It seems like an example of opcode bloat to me.
Dan Sugalski wrote:
On Mon, 7 Jun 2004, Jonathan Worthington wrote:
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 to
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
> > >
>
"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 opcode:
> >
> > .local pm
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 opcode:
>
> .local pmc pipe
> pipe = open "/bin/cat -n", "|-"
>
> # or
>
> p
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 opcode:
.local pmc pipe
pipe = open "/bin/cat -n", "|-"
# or
pipe = open "/bin/ls -l", "-|"
There is still no good way to pass
PIO_unix_pipe() is the eqivalent to perl5's pp_backtick(), i.e. run a
program and capture the program's output (or send something to the
program). I've hacked together a PIR script with some NCI code to use
this function - works fine - but the interface of PIO_unix_pipe() is a
bit clumsy to use