Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: MAX_ARRLEN
- X-seq: zsh-workers 30446
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- Subject: Re: MAX_ARRLEN
- Date: Mon, 23 Apr 2012 18:10:16 +0200
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fj20Y7MssNDH/o7ZMuRE/0xVI76egFEImlCn2+UuL4E=; b=KlxKU/7icWyWtqjPnvRtWJ55XL/y0uOCiM4UzW+2yhnZx8LdJQ1D1SN1yBhRzdNwpC Ib0WoOT1wcmEDiIgROeeiCpTQlTrV25K3dtxREs0OsBFM30xu0FTPAGQiOaxu1qjYrXn 4KTC495WlBZWOgN69mPynRBqNi1zRVDPfvQKJr10FCGd/4U3UYQvmqF+WJVwPkVpC68q JZgSUcfljphzhaaMeJZNKasrM4+aCe904NZJtMQaTfyClZPysSmbnYjoJ6EqXZYifd0b 6hseasoCi2OmQdEDhnKPICjJpVVAH/PJofvPx5T0+9P6Du3Jne1ApSalkQLwi0urPjP7 lS7g==
- In-reply-to: <20120423162711.42a6bad1@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20120423162711.42a6bad1@pwslap01u.europe.root.pri>
On 2012-04-23, Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> I've just hit MAX_ARRLEN. The array in question wasn't much larger than
> the limit and when I commented out the checks everything just worked fine.
> So it looks like an arbitrary limit isn't much use --- no great
> surprise, I don't think anyone here is a big fan of them.
>
> What's the right thing to do? There are various grades ranging from
> making it compilable out, through making it compile-time configurable
> with an option to compile out, through making it an option to have the
> check turned on, to having a variable that we check using getiparam()
> each time, to having a special variable so that we don't need to get it
> each time. I think the last option with a clearly named variable such
> as ZSH_MAX_ARRAY_LENGTH that can be set to 0 to turn it off is probably
> the best.
http://www.zsh.org/mla/workers/2010/msg00013.html
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author