On 05/23/2014 04:48 PM, Chet Ramey wrote:
On 5/23/14, 10:17 AM, Ondrej Oprala wrote:
Hi, there've recently been a few bug reports against bash on RH BZ,
saying that bash can't handle infinite recursion the way zsh or ksh can.

Looking at execute_cmd.c, there are the  funcnest{,_max} variables
and a piece of code using them in execute_function().

Will funcnest_max be set to non-0 in upstream code in the future?
Or is it just there for the downstream maintainers to set it if they
see it fit?
Neither.  The funcnest_max variable reflects the value of the FUNCNEST
shell variable.
Ah. I should have poked around the code (or the man page) more then, my bad.
Users can set the maximum recursion level they want,
without changing the bash code at all, but the default is still as much as
the stack will give you (as it has been all along).
Of course.

Chet
Thanks for the clarification.

    Ondrej

Reply via email to