# from Andreas J. Koenig
# on Thursday 01 February 2007 03:42 pm:
>+ return $ENV{PERL_MM_USE_DEFAULT} || ( !$self->_is_interactive &&
> eof STDIN );
>
>This hangs forever when the STDOUT is redirected and STDIN is not
>redirected.
Hmm, when STDOUT is not a terminal, then _is_interactive is false. I
guess the assumption here was that STDIN would be a set of scripted
answers? I guess it should only check eof(STDIN) if STDIN isn't a
terminal, but the _is_unattended() should be true?
>Introduced between 0.27_10 and 0.28 with SVN rev. 5919
It looks like the hang would have still occurred in r5918, since
_readline() would have still hit the eof(STDIN) check.
--Eric
--
[...proprietary software is better than gpl because...] "There is value
in having somebody you can write checks to, and they fix bugs."
--Mike McNamara (president of a commercial software company)
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------