IO#stat blows up ---------------- Key: JRUBY-3769 URL: http://jira.codehaus.org/browse/JRUBY-3769 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.3.1 Environment: Any (Can reproduce on MacOSX and Ubuntu) Reporter: Mike Grafton
the following script blows up on line 3 in JRuby: require 'open3' stdin, stdout, stderr = Open3.popen3("ls") puts stdout.stat.inspect With the following: No such file or directory - No such file or directory - -1 (Errno::ENOENT) Whereas in MRI you get the following output: #<File::Stat dev=0x0, ino=86647084, mode=010660, nlink=0, uid=501, gid=20, rdev=0x0, size=0, blksize=16384, blocks=0, atime=Mon Jun 22 07:38:38 -0700 2009, mtime=Mon Jun 22 07:38:38 -0700 2009, ctime=Mon Jun 22 07:38:38 -0700 2009> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email