Bharat Ruparel schrieb:
> However, I don't know how 
> to signal the termination of the standard input.

It is <CNTL>+Z or <CNTL>+D in a Windows console (I don't know which one, both 
work in the example below).

C:\Dokumente und Einstellungen\wolfgang>ruby
puts "hello"
^Z
hello

C:\Dokumente und Einstellungen\wolfgang>ruby
puts "hello"
^D
hello


> Wolfgang, you wrote:
> "the shebang will NOT work in a windows environment at all."
> You mean in: $stderr.print "IO failed: " + $!
> right?

No, I mean the typical first line in Unix/Linux programs, which start the 
correct interpreter automatically. This kind of invocation does not work in a 
Windows environment.

Wolfgang Ndasi-Donner