A LeDonne schrieb:
> What happens if you do:
> 
> type input.txt | ruby parser.rb

Thank you, this did it for me on Windows 2000 with the one click installer:

   type r.rb | r.rb
   r.rb:1:in `readlines': Bad file descriptor (Errno::EBADF)

   type r.rb | ruby r.rb
   ["p ARGF.readlines\n"]

   r.rb r.rb
   ["p ARGF.readlines\n"]

Regards,
Pit