Issue #14652 has been updated by jwmittag (Jrg W Mittag).


sanae (Sanae Artoria) wrote:
> ~~~ ruby
> 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.

----------------------------------------
Bug #14652: ruby -e "p ARGV" **/* is reasonably but slow
https://bugs.ruby-lang.org/issues/14652#change-74348

* Author: sanae (Sanae Artoria)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [i386-mingw32]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~ ruby
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 "**/*"?




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>