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
Windows un-redirected system call fails from extension-launched redirected perl #10790
Comments
From johnkw@univaud.comAll that's required is a command to run that prints to stdout. In this example I use another Perl command, but it could be anything. The complete redirect_fail.pl file to reproduce is then: It only fails if it is "extension-launched" via the .pl extension. Ie, this fails: But this works as expected: Known to fail in both cygwin and ActiveState Perls. Known to fail on Win 2000 and XP. (Does not fail however on Win 2008 R2.) Note "un-redirected system call fails" because redirected system calls work fine. Also the backtick operator works in all tested scenarios. |
From johnkw@univaud.comAnother workaround is to use IPC::Open3::open3(). |
From johnkw@univa.comNote that $^X should report the same path in any of the cases, and does even in the failing cases. (So it's not an issue of .pl invoking a different command line.) Notice from Univa UD Postmaster: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. This message has been content scanned by the Univa UD Tumbleweed MailGate. |
The RT System itself - Status changed from 'new' to 'open' |
From itcharlie@gmail.comWe no longer support Windows 2000 and Windows XP. In Windows 7 with Strawberry Perl 5.24.1, the code snippet works just fine: system('perl -e "print qq(hi) or die \$!; close(STDOUT) or die \$!;"'); ++++++ I will for an update in the next 7 days, if there is not update I will ping someone from p5p group to mark this ticket as "Won't Fix". |
This comment has been minimized.
This comment has been minimized.
From itcharlie@gmail.comDisregard post. This issue still exists but this time around the -e error string doesn't show up and the output file is empty. ++++ |
Migrated from rt.perl.org#78760 (status was 'open')
Searchable as RT78760$
The text was updated successfully, but these errors were encountered: