[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02822] A question on Dir["**"]

From: Dave Thomas <Dave@...>
Date: 2000-05-16 04:51:21 UTC
List: ruby-talk #2822
The following message is a courtesy copy of an article
that has been posted to comp.lang.ruby as well.


This isn't a bug, just a question... ;-)

What should Dir["**"] return. On 1.5.4, it seems to list just files in 
the current directory. However, under zsh, it also includes all files
in subdirectories. With Ruby, you have to use Dir["**/*"] to achieve
this.


Just curious


Dave 

In This Thread

Prev Next