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

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

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

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

matz@netlab.co.jp (Yukihiro Matsumoto) writes:

> Hi,
> 
> Could you forward this message to the newsgroup please?
> I'm still working on group creation.  sigh.

Done!

> 
> In message "[ruby-talk:02822] A question on Dir["**"]"
>     on 00/05/15, Dave Thomas <Dave@thomases.com> writes:
> 
> |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.
> 
> Under zsh 3.1.6-dev-21 on my machine, "echo **" shows the list of
> files in the current directory only, just like ruby 1.5.4.

Doh! I'm sorry about that- I got fooled by an extra level of shell
expansion. You're absolutely right.


On the irb/rbc front.  Should we be documenting irb or rbc in the
book?



Dave

In This Thread