Hi,

At Mon, 28 Nov 2005 16:51:38 +0900,
Pit Capitain wrote in [ruby-talk:167734]:
> another way is use a command line such as
> 
>    ruby -e "STDOUT.sync = true" -e "load ARGV.shift" myscript.rb

It'd be better to set $0 too.

     ruby -e STDOUT.sync=true -e 'load($0=ARGV.shift)' myscript.rb

-- 
Nobu Nakada