> -----Original Message-----
> From: Yukihiro Matsumoto [mailto:matz / ruby-lang.org] 
> Sent: Wednesday, May 05, 2004 6:29 PM
> To: ruby-core / ruby-lang.org
> Subject: Re: Tempfile strangeness
> 
> 
> Hi,
> 
> In message "Tempfile strangeness"
>     on 04/05/06, Florian Frank <flori / nixe.ping.de> writes:
> 
> |this throws an exception Errno::EACCESS under Windows
> |
> |ruby -r tempfile -e 'Tempfile.new("foo").unlink'
> |
> |but works under Unixen. I think the behaviour ought to be 
> consistent on 
> |both. Closing the tempfile before unlinking it, seems to help (see 
> |patch). What do you think?
> 
> How about ignoring EACCESS?  The tempfile will be removed 
> anyway, allowing almost portable behavior.
> 
> 							matz.

Another alternative is to wrap "closed? or close" in a "if
File::ALT_SEPARATOR; end".  I would prefer this to having to rescue it
myself.

Regards,

Dan