1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00

37785: skip autoload parameters for "typeset -p"

This commit is contained in:
Barton E. Schaefer 2016-01-26 18:17:24 -08:00
parent 69c86cd2c3
commit 10c5f95f52
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2016-01-26 Barton E. Schaefer <schaefer@brasslantern.com>
* 37785: Src/params.c: skip autoload parameters for "typeset -p"
2016-01-25 Barton E. Schaefer <schaefer@zsh.org>
* Jun T.: 37759: Src/Modules/param_private.c: save more function

View file

@ -5258,7 +5258,8 @@ printparamnode(HashNode hn, int printflags)
if (printflags & PRINT_TYPESET) {
if ((p->node.flags & (PM_READONLY|PM_SPECIAL)) ==
(PM_READONLY|PM_SPECIAL)) {
(PM_READONLY|PM_SPECIAL) ||
(p->node.flags & PM_AUTOLOAD)) {
/*
* It's not possible to restore the state of
* these, so don't output.