Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Errno::ENOENT when evaluating $FILENAME in 1.9.x

Reply
Thread Tools

Errno::ENOENT when evaluating $FILENAME in 1.9.x

 
 
Mark Moseley
Guest
Posts: n/a
 
      09-16-2009
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/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vb functions evaluating on load =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= ASP .Net 4 08-04-2004 12:30 PM
Evaluating struts tags inside my own custom tags... A. Brinkmann Java 2 04-16-2004 07:44 AM
evaluating JSP 2 expressions (EL) with tomcat 5.0 Markus Becker Java 4 03-04-2004 08:23 PM
Evaluating Formulas in ASP.NET microsoft.private.windows.netserver.setup ASP .Net 1 03-04-2004 08:59 AM
Evaluating url trust level Hagay Lupesko ASP .Net 0 10-19-2003 07:27 PM



Advertisments