From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2007-04-06T02:55:06+09:00 Subject: Re: Dir.glob time of evaluation wrote: > > am i right or dreaming ???? > > you are not dreaming. fine thanks a lot ! > > you're also crazy for shelling out to do the moving and removing: > > require 'fileutils' > > FileUtils.mv f, fo > FileUtils.rm_rf fo if c oh, i see may be the prob comes only from my shelling ? I'll change asap this bad habit coming from zsh )) > also, you are leaving open file handles all over the place with this line > > > File.open("#{f}",'w').puts > > you should use > > open(f, 'w'){|fd| fd.puts } > > to ensure that each file opened is also closed i thought, wrongly i presume, File.open() did also the closing ))) > > regards. best, -- Une B�vue