Project

General

Profile

Feature #6412

Make Dir.entries default to Dir.entries(Dir.pwd)

Added by shevegen (Robert A. Heiler) about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:44942]

Description

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?


Related issues

Has duplicate Ruby master - Feature #6413: Make Dir.entries default to Dir.entries(Dir.pwd)AssignedActions

History

Updated by shevegen (Robert A. Heiler) about 7 years ago

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.

#2

Updated by marcandre (Marc-Andre Lafortune) about 7 years ago

  • Tracker changed from Bug to Feature

Updated by mame (Yusuke Endoh) about 7 years ago

  • Status changed from Open to Rejected

Do not reply to this ticket. Go to #6413.

--
Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF