.RB is add to my Windows 2000 env, i.e.:

PATHEXT=.COM;.EXE;.BAT;.PL;.RB

and so I can run a list.rb using command line:

>list

instead of

>ruby list.rb


However, for the following program (list.rb):

# hi there
# --
ARGF.each { |line| print line if line =~ /hi/ }

1) is ok but not 2), any help?

1)

>ruby list.rb list.rb

2)

>list list.rb

Thanks
horace


Sent via Deja.com
http://www.deja.com/