As Wolf stated the problem is with the 'date' command on windows.
Just change the called command for something that do not ask for input 
and it will work.

alias old_backquote `
def `(cmd)
    result = old_backquote(cmd)
    if $? != 0
      fail "Command #{cmd} failed: #$?"
    end
    result
end

puts   `dir`




-- 
Posted via http://www.ruby-forum.com/.