From: Andrew Walrond Date: 2004-08-28T06:15:40+09:00 Subject: Re: [BUG] Frequent Segfault with stable snapshot 2004-08-23 > > This code works for me in both > > $ ruby -v > ruby 1.9.0 (2004-08-25) [i686-linux] > $ ruby-stable-snapshot -v > ruby 1.8.2 (2004-08-24) [i686-linux] > > The exact code I am using is: > > class String > def ls() > fa=Dir.glob(self+"/{.,}?*") > fa.delete(self+"/..") > return fa > end > end > > p ".".ls > Yes, it also works for me most of the time. This function is called many hundreds of times during execution of the main script, and the script as a whole only fails one in every 5 tries or so. Andrew