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

"Overlarge EPROG nref" with functions -c



Someone in IRC was defining thousands of functions with brace
expansions, and I thought perhaps they could save some memory by using
functions -c instead, and came across the following:

% orig() {}
% for i in {1..2000}; do functions -c orig copy_$i; done
% for i in {1..2000}; do functions -c orig copy_$i; done
 parse.c:2816: Overlarge EPROG nref
[message repeats many times]

I'm assuming this is indicative of something bad, but I didn't look
into it, hoping that perhaps someone else knows more.

-- 
Mikael Magnusson




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