File directory ugly

J

James A. Bowery

Check this:

$ cat spec/lib/plugins/filedirbug.rb
puts File.dirname(__FILE__)
eval("puts File.dirname(__FILE__)")

$ ruby spec/lib/plugins/filedirbug.rb
spec/lib/plugins
..
 
G

Gordon Thiesfeld

Check this:

$ cat spec/lib/plugins/filedirbug.rb
puts File.dirname(__FILE__)
eval("puts File.dirname(__FILE__)")

$ ruby spec/lib/plugins/filedirbug.rb
spec/lib/plugins
.

C:\>cat test
eval("puts __FILE__")
eval("puts File.dirname(__FILE__)")

eval("puts __LINE__")

C:\>ruby test
(eval)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top