From: Chris Morris Date: 2002-09-06T05:00:28+09:00 Subject: Re: $0 == __FILE__ idiom for Unix only? > I have been using the Ruby idiom 'if $0 == __FILE__ ..... end' for > ages on Linux and now that I have to use some of my scripts on WIndows > it looks like this test doesn't work? > > Is this supposed to work on Unix/Linux only or on all platforms?? Works all the time for me on Windows... chris