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


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.


Mikael Magnusson

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