* nonomatch and *([x,y])
@ 2009-01-30 19:55 Stephane Chazelas
2009-01-30 20:09 ` Richard Hartmann
2009-01-31 18:56 ` Peter Stephenson
0 siblings, 2 replies; 3+ messages in thread
From: Stephane Chazelas @ 2009-01-30 19:55 UTC (permalink / raw)
To: Zsh hackers list
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
--
Stéphane
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nonomatch and *([x,y])
2009-01-30 19:55 nonomatch and *([x,y]) Stephane Chazelas
@ 2009-01-30 20:09 ` Richard Hartmann
2009-01-31 18:56 ` Peter Stephenson
1 sibling, 0 replies; 3+ messages in thread
From: Richard Hartmann @ 2009-01-30 20:09 UTC (permalink / raw)
To: Zsh hackers list
On Fri, Jan 30, 2009 at 20:55, Stephane Chazelas
<Stephane_Chazelas@yahoo.fr> wrote:
> IIRC I think I did some time ago
Don't have anything older, sorry.
richih@adamantium ~ % echo $ZSH_VERSION
4.3.6
richih@adamantium ~ % zsh -fc 'f() echo $#; f *([1000,20000])'
0
richih@adamantium ~ %
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nonomatch and *([x,y])
2009-01-30 19:55 nonomatch and *([x,y]) Stephane Chazelas
2009-01-30 20:09 ` Richard Hartmann
@ 2009-01-31 18:56 ` Peter Stephenson
1 sibling, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2009-01-31 18:56 UTC (permalink / raw)
To: Zsh hackers list
On Fri, 30 Jan 2009 19:55:54 +0000
Stephane Chazelas <Stephane_Chazelas@yahoo.fr> 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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-31 18:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30 19:55 nonomatch and *([x,y]) Stephane Chazelas
2009-01-30 20:09 ` Richard Hartmann
2009-01-31 18:56 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).