New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPC::Open3 doesn't vivify an err filehandle #7515
Comments
From perl-5.8.0@ton.iguana.beCreated by perl-5.8.0@ton.iguana.beperl -le ' This outputs: So as you can see $err actually never gets filled in. Beyond that the logic also seems wrong for getting the err handle filled in: $dad_err ||= $dad_rdr; will duplicate $dad_rdr to $dad_err, which means that later the xpipe $dad_err, $kid_err if !$dup_err && $dad_err ne $dad_rdr; will do nothing. So stderr will not get its own pipe. And indeed stracing Possibly this is intentional, because the docs say: If either reader or writer is the null string, this will be replaced by which indeed doesn't talk about $err (and it talks about empty strings my($wtr, $rdr, $err); which suggests $err is now something you can use instead of just a (Mmm, and why is the code playing ugly gensym games anyways now that Perl Info
|
From @jkeenanOn Mon Sep 27 07:05:23 2004, perl-5.8.0@ton.iguana.be wrote:
Confirmed that, seven years later, problem persists: $ perl -le '
Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Fri, Dec 2, 2011 at 7:31 PM, James E Keenan via RT <
I was going to suggest that the resolution should be a clarification of the - It's not practical to work around valid code C<< open3($wtr, $rdr, But the documentation is already quite clear about this: If CHLD_ERR is false, or the same file descriptor as CHLD_OUT, then STDOUT If this was a bug when the requester filed it, it's already been resolved - Eric |
@ikegami - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#31738 (status was 'resolved')
Searchable as RT31738$
The text was updated successfully, but these errors were encountered: