
|
If you were logged in you would be able to see more operations.
|
|
|
- MRI *
alexeyv@alexeyv-laptop:~$ ruby -e "File.open('./foo', 'w') { |f| 1000.time f.puts 'quick brown fox' }"
-e:1: warning: parenthesize argument(s) for future version
-e:1:in `initialize': Is a directory - ./foo (Errno::EISDIR)
from -e:1:in `open'
from -e:1
*JRuby *
alexeyv@alexeyv-laptop:~$ jruby -e "File.open('./foo', 'w') { |f| 1000.time f.puts 'quick brown fox' }"
-e:1 warning: parenthesize argument(s) for future version
-e:1:in `open': File not found (Errno::ENOENT)
Note the wrong error (file not found makes no sense for File.open with 'w' flag)
|
|
Description
|
- MRI *
alexeyv@alexeyv-laptop:~$ ruby -e "File.open('./foo', 'w') { |f| 1000.time f.puts 'quick brown fox' }"
-e:1: warning: parenthesize argument(s) for future version
-e:1:in `initialize': Is a directory - ./foo (Errno::EISDIR)
from -e:1:in `open'
from -e:1
*JRuby *
alexeyv@alexeyv-laptop:~$ jruby -e "File.open('./foo', 'w') { |f| 1000.time f.puts 'quick brown fox' }"
-e:1 warning: parenthesize argument(s) for future version
-e:1:in `open': File not found (Errno::ENOENT)
Note the wrong error (file not found makes no sense for File.open with 'w' flag) |
Show » |
Sort Order:
|
I'll fix it if you provide a neat test case for it....