From: Shugo Maeda Date: 2013-01-24T12:19:58+09:00 Subject: [ruby-core:51612] Re: [ruby-trunk - Bug #7729] __dir__ returns a absolute dir path --bcaec51b16d5f7a4eb04d4004817 Content-Type: text/plain; charset=ISO-8859-1 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? --bcaec51b16d5f7a4eb04d4004817 Content-Type: text/html; charset=ISO-8859-1

2013/01/24 2:28 "SASADA Koichi" <ko1@atdot.net>:

> 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?

--bcaec51b16d5f7a4eb04d4004817--