Given foo.rb with the single line:
puts $FILENAME

Run, under Ruby 1.9:
ruby foo.rb asdf

Gets error:
foo.rb:1:in `<main>': No such file or directory - asdf (Errno::ENOENT)

This duplicates the way the Rails passes the webserver name (ie
"script/server webrick")

Under Ruby 1.8.6, I get the output "-"; no exception.

Is this a problem with Ruby 1.9, Rails, or something else?
-- 
Posted via http://www.ruby-forum.com/.