On 13-Oct-06, at 10:22 AM, Sy Ali wrote:

> This always fails.
>
> Dir.chroot(Dir.pwd)
> Kernel.system('echo "new file" > foo')
> Kernel.system('rm -f bar')
> Kernel.system('mv -f foo bar')
> if File.exists?("bar") == true then puts "PASS" else puts "FAIL" end
>
> It's the chroot which is causing the problem.  What's the problem?
>

If you don't use external utilities would you be happier e.g.  
File::unlink, File::rename and normal file io.

Michael

-- 

Mike Stok <mike / stok.ca>
http://www.stok.ca/~mike/

The "`Stok' disclaimers" apply.