Thread (22 messages) flat view 22 messages, 8 authors, 2016-06-15

Re: [PATCH] fmt-merge-msg: avoid open "-|" list form for Perl 5.6

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:20

Possibly related (same subject, not in this thread)

On 2/21/06, Sam Vilain [off-list ref] wrote:
Alex Riesen wrote:
quoted
quoted
quoted
Does not work here (ActiveState Build 811, Perl 5.8.6):
$ perl -e 'open(F, "-|")'
'-' is not recognized as an internal or external command,
operable program or batch file.
Portability, Ease of Coding, Few CPAN Module Dependencies.  Pick any two.
Sometimes an upgrade is just out of question. Besides, that'd mean an
upgrade to another operating system, because very important scripts
over here a just not portable to anything else but
    "ActiveState Perl on Windows (TM)"
I just have no choice.
Sure, but perhaps IPC::Open2 or some other CPAN module has solved this
problem already.
IPC::Open2 works! Well "kind of": there are still strange segfaults regarding
stack sometimes. And I don't know yet whether and how the arguments are escaped
(Windows has no argument array. It has that bloody stupid one-line command line)
I guess what I'm saying is that if you want to limit the modules that
Perl script uses, you end up either impacting on the portability of the
script or rediscovering problems with early wheel designs.
IPC::Open{2,3} seem to be installed on every system I have access to.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help