Skip Menu |

This queue is for tickets about the IPC-Run3 CPAN distribution.

Report information
The Basics
Id: 31343
Status: resolved
Priority: 0/
Queue: IPC-Run3

People
Owner: RSCHUPP [...] cpan.org
Requestors: RSCHUPP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.039
Fixed in: (no value)



Subject: run3() should use three argument variant of open()
This receent CPAN annotation exposes a bug: http://annocpan.org/~RJBS/IPC-Run3-0.039/lib/IPC/Run3.pm#note_1755 You can append to file "foo.txt" by calling (note the right angle bracket): run3 [ qw(some program) ], \undef, ">foo.txt"; That's because in this use case, run3() blindly uses the $name of the file to receive stdout as open FH, ">$name" It should rather use open FH, ">", $name Note: That could break compatibility with older Perls that didn't have this three arguemtn open(). I checked as early as 5.6.0 and that should be OK.