Project

General

Profile

Bug #14652

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

Added by sanae (Sanae Artoria) 7 months ago. Updated 4 days 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) 7 months ago

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

#2 [ruby-core:86397] Updated by sanae (Sanae Artoria) 7 months ago

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

#3 [ruby-core:89319] Updated by jwmittag (Jörg W Mittag) 9 days 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.

#4 [ruby-core:89396] Updated by duerst (Martin Dürst) 4 days ago

  • Status changed from Open to Rejected

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

Also available in: Atom PDF