--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
I want to know if there's a more 'portable' way to do this in ruby:
I hope my programe will accept data from redirected stdin or pipe, like
cat bar | foo.rb
foo.rb < bar
And after read the data I want to interact with the foo.rb in console.
The problem is stdin has been redirected so I have to:
STDIN.reopen('/dev/tty')
Hardcoding a string in the script seems not good. Any suggestions?
Thanks
Jan
--
jan=callcc{|jan|jan};jan.call(jan)
--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
iEYEARECAAYFAkgIFV0ACgkQrEeD7Z87FjoldQCgrpGZKnQTVqii/K/s0Txno45K
9VkAn3quzcR4/Asml2+6I3BO1EQLud6h
T
-----END PGP SIGNATURE-----
--uAKRQypu60I7Lcqm--