Tim Legant wrote:
> "Jason R. Mastaler" <[EMAIL PROTECTED]> writes:
>> I've been staring at this bug report, and don't have any ideas. Does
>> anyone have any input on how to fix this problem?
>
> This patch fixes it on my system, as well as a couple of other
> annoying implementation details all clustered in the same spot. You
> might want to test it on systems other than FreeBSD, which is all I
> have here right now.
I didn't apply the patch, but the concept (opening /dev/tty for read)
works on Linux, Windows 2000/Cygwin, Solaris 8, and AIX 5.1. I don't
have access to a Mac OS X system, or a Windows system that has a
non-Cygwin Perl or Python.
I tested it with the following command line:
echo test | perl -e 'while(<>) { print; } open(S, "</dev/tty") or die
"$!\n"; while(<S>) { print; } close(S);'
All one line, of course. It should print "test" (read from STDIN),
then echo back the lines you type until you enter EOF.
Ed
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers