Issue #6412 has been updated by shevegen (markus heiler).


Sorry, this is the wrong one.

This is not a "bug", I wanted to mark it as feature, but it 
seems I clicked too quickly. Can someone remove this here?
(I don't know how to remove it)

This should be under "feature" instead.
----------------------------------------
Bug #6412: Make Dir.entries default to Dir.entries(Dir.pwd)
https://bugs.ruby-lang.org/issues/6412#change-26531

Author: shevegen (markus heiler)
Status: Open
Priority: Low
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3


Is there a reason why Dir.entries requires one argument?

I think it would be easier and more convenient for the userruby  if it would default to the current directory. Like so:

Dir.entries(i = Dir.pwd)

Or is there a reason why this is not done?


-- 
http://bugs.ruby-lang.org/