> C:\Documents and Settings\Admin>echo 'puts "Hello"' | ruby
> 
> C:\Documents and Settings\Admin>

Look at the output of the echo command:

C:\>echo 'puts "Hello"'
'puts "Hello"'

The windows shell includes the single-quote whaere as bash does not.

try:

C:\>echo puts "Hello" | ruby
Hello
C:\>

As for the problem with the DOS box.  Adding a requireing input at the 
end of the program is one (poor) solution, as is using a cmd shell.  I 
hope someone has a better one

J.F. Miller

-- 
Posted via http://www.ruby-forum.com/.