From: vulpes Date: 2007-03-21T19:50:05+09:00 Subject: Cygwin + TempFile + Dir.chdir = failure I'm running ruby 1.8.5-3 for Cygwin under Win XP Pro SP 2. Here's some code: require 'tempfile' Dir.chdir("./aDir") do Tempfile.open("johndoe", ".") do |f| # Can be even empty end end With this code, the temporary file in ./aDir will not be removed. Is this a bug, a Cygwin/Windows "feature", or what? How to get around this thing?