Project

General

Profile

Actions

Bug #14652

closed

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

Added by sanae (Sanae Artoria) almost 6 years ago. Updated over 5 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 "**/*"?

Actions #1

Updated by sanae (Sanae Artoria) almost 6 years 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) almost 6 years ago

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

Updated by jwmittag (Jörg W Mittag) over 5 years 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) over 5 years ago

  • Status changed from Open to Rejected

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0