It catches Errno::ENOTEMPTY and Errno::ENOENT and just does nothing. Most of other FileUtils methods have option "force" which is false by default but rmdir behaves as if it is true implicitly. Imho it looks unexpected. bdimych (Dmitry Bolshakov)
I did have read that "force" flag ignores StandardError, but it was unexpected for me because of linux's "rm -rf" fails if it can't delete. "rm --help" says "-f ignore nonexistent files" Imho it sounds better than just ignore all erro...bdimych (Dmitry Bolshakov)
Hi I think it would be useful to have an analogue of the "my" keyword in Perl e.g. x = 'outer value' p = Proc.new { ... many code here ... my x = 'local value does not affect outer variable' } I know I can declare local...bdimych (Dmitry Bolshakov)
this is only on cygwin, on linux all ok $ uname -a CYGWIN_NT-5.1 bolshakovxp 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin --- test script --- #!/usr/bin/ruby STDOUT.sync = true puts 'before "system" ctrl-c stops the script ...bdimych (Dmitry Bolshakov)