Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: nonomatch and *([x,y])



On Fri, 30 Jan 2009 19:55:54 +0000
Stephane Chazelas <Stephane_Chazelas@xxxxxxxx> wrote:
> 4.3.9-dev-1-cvs0122$ zsh -fc 'f() echo $#; f *([1000,20000])'
> 0
> 
> Shouldn't I get a:
> 
> zsh:1: no matches found: *([1000,20000])
> 
> IIRC I think I did some time ago

I don't think so...  I'd be surprised, because that's not how array
accesses usually work, and this is deliberately similar.  However, you
can certainly argue it should do that in this case to avoid suprises.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author