From: KOSAKI Motohiro Date: 2013-01-24T12:27:20+09:00 Subject: [ruby-core:51613] Re: [ruby-trunk - Bug #7729] __dir__ returns a absolute dir path On Wed, Jan 23, 2013 at 10:19 PM, Shugo Maeda wrote: > 2013/01/24 2:28 "SASADA Koichi" : > >> Only the first script returns relative path by __FILE__. >> I think all of __FILE__ and __dir__ should return absolute path. >> >> # BTW, why it returns relative path? > > For code like $0 == __FILE__ ? > How about to add __file__, which always returns an absolute path, maybe in > the next minor? or how about overload '==' if given $0 and __FILE__?