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

Re: maximum value for HISTSIZE ?



On Apr 1, 11:32am, Andy Spiegl wrote:
} Subject: Re: maximum value for HISTSIZE ?
}
} > So is there a maximum value or/and on what does it depend?
} 
} Really no one knows?

There isn't a fixed maximum.  Zsh will try to use all the memory your
system will allocate to it to maintain as large a history as you ask.
When the memory runs out depends on your system.

I don't know exactly what's happening in _all_labels, but it's most
likely trying to create an array indexed on history number.  When zsh
creates an array and is asked to insert an element at index N, all of
the N-1 elements at lesser index positions are also allocated, even if
there's nothing to put in them.



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