Re: [jim@freeze.org: FileUtils Bug in 1.8.0]

From: Jim Freeze <jim@...>
Date: 2004-04-29 04:58:33 UTC
List: ruby-core #2828
Oops, this email got out early.
I have confirmed this on 1.8.0 and 1.8.1.

I think it is a bug.

Jim

On Thursday, 29 April 2004 at 13:56:59 +0900, Jim Freeze wrote:
> Does the current installation of Ruby have this problem?
> 
> > cat test.rb
> 
> require 'fileutils'
> 
> Dir.mkdir("fred")
> Dir.mkdir("neighbor")
> 
> FileUtils.ln_s("../neighbor","fred/upandover")
> 
> FileUtils.rm_rf("fred")
> 
> > ruby -v test.rb 
> ruby 1.8.0 (2003-08-04) [sparc-solaris2.8]
> /usr/local/lib/ruby/1.8/fileutils.rb:583:in `rmdir': Not a directory -
> fred/upandover (Errno::ENOTDIR)
>         from /usr/local/lib/ruby/1.8/fileutils.rb:583:in `remove_dir'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:577:in `remove_dir'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:573:in `foreach'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:573:in `remove_dir'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:534:in `rm_r'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:526:in `each'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:526:in `rm_r'
>         from /usr/local/lib/ruby/1.8/fileutils.rb:550:in `rm_rf'
>         from test.rb:9
> 
> 
> 
> -- 
> Jim Freeze
> Ruby. The little language that could.
> When a fellow says, "It ain't the money but the principle of the
> thing," it's the money.
> 		-- Kim Hubbard

-- 
Jim Freeze
The power of Ruby. It's better than cheese.
The little language that could.
	The seven eyes of Ningauble the Wizard floated back to his hood
as he reported to Fafhrd: "I have seen much, yet cannot explain all.
The Gray Mouser is exactly twenty-five feet below the deepest cellar in
the palace of Gilpkerio Kistomerces.  Even though twenty-four parts in
twenty-five of him are dead, he is alive.

	"Now about Lankhmar.  She's been invaded, her walls breached
everywhere and desperate fighting is going on in the streets, by a
fierce host which out-numbers Lankhmar's inhabitants by fifty to one --
and equipped with all modern weapons.  Yet you can save the city."

	"How?" demanded Fafhrd.

	Ningauble shrugged.  "You're a hero.  You should know."
		-- Fritz Leiber, from "The Swords of Lankhmar"

In This Thread

Prev Next