1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01: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

@ -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.