From: Xie Hanjian Date: 2008-04-18T16:51:29+09:00 Subject: Re: What's the 'portable' way to do this? --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * ara.t.howard [2008-04-18 13:58:31 +0900]: > > On Apr 17, 2008, at 9:30 PM, Xie Hanjian wrote: >> STDIN.reopen('/dev/tty') > > > stdin =3D STDIN.dup > > data =3D STDIN.read > > STDIN.reopen stdin > Thanks for your reply, but this seems not work. I think the problem is when you do STDIN.dup, you're duplicating the already redirected STDIN. > > a @ http://codeforpeople.com/ > -- > we can deny everything, except that we have the possibility of being=20 > better. simply reflect on that. > h.h. the 14th dalai lama > > > > --=20 jan=3Dcallcc{|jan|jan};jan.call(jan) --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkgIUo4ACgkQrEeD7Z87FjpMagCeJSzK/W6xkjfVAqk/ZQoDhjOY ywEAmQF6VHn4dU7EADCvkLHYeLli9qYA =6DtX -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--