Project

General

Profile

Bug #14652

ruby -e "p ARGV" **/* is reasonably but slow

Added by sanae (Sanae Artoria) over 1 year ago. Updated 11 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [i386-mingw32]
[ruby-core:86395]

Description

C:\Users\Administrator>ruby -e "p ARGV" **/*

Runs slow because it globs all things in it as well known.
But can I disable this feature only to get the pattern "*/"?

History

#1

Updated by sanae (Sanae Artoria) over 1 year ago

  • Subject changed from ruby -e "p ARGV" **/* is reasonabe but slow to ruby -e "p ARGV" **/* is reasonably but slow

Updated by sanae (Sanae Artoria) over 1 year ago

double quoted string "/*" is the same
but solved by single quoted string argument '
/*'

Updated by jwmittag (Jörg W Mittag) 12 months ago

sanae (Sanae Artoria) wrote:

C:\Users\Administrator>ruby -e "p ARGV" **/*

Runs slow because it globs all things in it as well known.
But can I disable this feature only to get the pattern "*/"?

Globbing is performed by the shell. It has nothing to do with Ruby, and there is nothing Ruby can do about it. You need to read the documentation of whatever shell you are using to figure out how to disable it.

Updated by duerst (Martin Dürst) 11 months ago

  • Status changed from Open to Rejected

Closed as irrelevant, as explained by jwmittag (Jörg W Mittag).

Also available in: Atom PDF