develooper Front page | perl.perl5.porters | Postings from April 2022

Re: Pre-RFC: readpipe with list args

Thread Previous
From:
Dan Book
Date:
April 6, 2022 21:22
Subject:
Re: Pre-RFC: readpipe with list args
Message ID:
CABMkAVWZewtrBYQOJ8=O17GM92wtK7fAgwyzJPsUEaiQBzScRQ@mail.gmail.com
On Wed, Apr 6, 2022 at 4:03 PM Felipe Gasper <felipe@felipegasper.com>
wrote:

> Hello,
>
>         Whereas Perl’s `system` and `exec` built-ins can accept a list of
> parameters to pass to the called program, `readpipe` only takes a single
> argument. Thus, if you want to pass parameters to the called program, you
> have to apply shell quoting, which is error-prone.
>
>         This is confusing and strange, I think. It would seem ideal for
> `readpipe` to work as `system` and `exec` do.
>
>         Thoughts?
>

I agree it is weird and restrictive, and this is the reason I wrote
https://metacpan.org/pod/IPC::ReadpipeX.

-Dan

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About