<ara.t.howard / noaa.gov> 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 <something updated>
> 
> you should use
> 
>    open(f, 'w'){|fd| fd.puts <something updated>}
> 
> to ensure that each file opened is also closed

i thought, wrongly i presume, File.open() did also the closing )))

> 
> regards.

best,
-- 
Une Bue