diff options
| author | Peter Stephenson <pws@zsh.org> | 2017-09-29 16:46:01 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2017-10-02 09:44:26 +0100 |
| commit | 174e560a23e40725cd0b50669a52d831342e5246 (patch) | |
| tree | 6ded2f3a9cf9dc2fbece05d867f4531c8e55f575 /Test | |
| parent | Add typeset -p1, like typeset -p with newlines (diff) | |
| download | zsh-174e560a23e40725cd0b50669a52d831342e5246.tar zsh-174e560a23e40725cd0b50669a52d831342e5246.tar.gz zsh-174e560a23e40725cd0b50669a52d831342e5246.tar.bz2 zsh-174e560a23e40725cd0b50669a52d831342e5246.tar.lz zsh-174e560a23e40725cd0b50669a52d831342e5246.tar.xz zsh-174e560a23e40725cd0b50669a52d831342e5246.tar.zst zsh-174e560a23e40725cd0b50669a52d831342e5246.zip | |
41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.
Initialised from existing configuration value.
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/C04funcdef.ztst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 6a675e0b4..0c00a0477 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -515,6 +515,14 @@ 0:autoload with absolute path not cancelled by bare autoload >I have been loaded by explicit path. + ( + FUNCNEST=0 + fn() { true; } + fn + ) +1: +?fn:4: maximum nested function level reached; increase FUNCNEST? + %clean rm -f file.in file.out |
