Project

General

Profile

Actions

Bug #14652

closed

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

Bug #14652: ruby -e "p ARGV" **/* is reasonably but slow

Added by sanae (Sanae Artoria) over 7 years ago. Updated about 7 years ago.

Status:
Rejected
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 "**/*"?

Updated by sanae (Sanae Artoria) over 7 years ago Actions #1

  • 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 7 years ago Actions #2 [ruby-core:86397]

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

Updated by jwmittag (Jörg W Mittag) about 7 years ago Actions #3 [ruby-core:89319]

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) about 7 years ago Actions #4 [ruby-core:89396]

  • Status changed from Open to Rejected

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

Actions

Also available in: PDF Atom