This project is read-only.
0

Closed

__FILE__ doesn't return a canonicalized path

description

FILE needs to return a canonicalized path (eg. file separators are all of type File::SEPARATOR). Currently, IronRuby reports FILE as whatever the user used to describe it or it's path:
 
http://gist.github.com/94767
 
Rails depends on this behavior.
Closed Apr 29, 2009 at 11:21 PM by sborde

comments

jimmysch wrote Apr 20, 2009 at 11:33 PM

The issue is a bit different ... FILE and $PROGRAM_NAME are always canonicalized for the start program (only when run from ruby.exe), but files included via require/load are not.

wrote Apr 20, 2009 at 11:57 PM

wrote Apr 29, 2009 at 11:21 PM

wrote Feb 22, 2013 at 12:40 AM

wrote May 16, 2013 at 12:05 PM

wrote Dec 15, 2017 at 10:28 PM