Bug#916313: perl: open "|command" does not set up child process's stdin correctly on perl 5.28 (5.24 is OK)

2018-12-15 Thread Dominic Hargreaves
Control: tags -1 + confirmed Control: forwarded -1 https://rt.perl.org/Ticket/Display.html?id=133726 On Wed, Dec 12, 2018 at 04:54:22PM -0500, Zygo Blaxell wrote: > Dear Maintainer, > > The following one-line perl script fails: > > perl -e 'close(STDIN); open(CHILD, "|wc -l")' > > On

Bug#916313: perl: open "|command" does not set up child process's stdin correctly on perl 5.28 (5.24 is OK)

2018-12-12 Thread Zygo Blaxell
Package: perl Version: 5.28.1-3 Severity: normal Dear Maintainer, The following one-line perl script fails: perl -e 'close(STDIN); open(CHILD, "|wc -l")' On Debian stable (5.24.1-3+deb9u5) it produces: $ perl -e 'close(STDIN); open(CHILD, "|wc -l")' 0 but on Debian