File.open("NUL:") fails under Windows
-------------------------------------
Key: JRUBY-2058
URL: http://jira.codehaus.org/browse/JRUBY-2058
Project: JRuby
Issue Type: Bug
Environment: Windows XP and Windows Vista
Reporter: Robert Jay Osborne
Assignee: Thomas E Enebo
JRuby:
irb(main):001:0> f = File.open("NUL:")
Errno::ENOENT: No such file or directory - file not found - NUL:
from (irb):2:in `puts'
MRI:
irb(main):001:0> f = File.open("NUL:")
=> #<File:NUL:>
This is used all the time to swallow standard error and output in Ruby scripts,
including Rails.
--
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