From: Caleb Clausen Date: 2010-01-23T05:48:45+09:00 Subject: [ruby-core:27711] Re: able to re-require $0 On 1/22/10, Robert Klemme wrote: > I don't think it's worth fixing because a) it is unlikely that someone > requires $0 and b) even if that case would be prevented you can still > cause harm by having links in the filesystem pointing to the same > file. Fixing that would require quite a bit of file system magic I > believe and that is probably not worthwhile because of the time and > runtime overhead (might have to do additional FS accesses). Maybe I'm missing something, but it seems like this could be addressed without great effort or significant overhead. All you'd have to do is be sure to pull in the main script file with rb_require or at least add its name to $" on startup.