diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-01-26 18:17:24 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-01-26 18:17:24 -0800 |
commit | 10c5f95f52e449242170b17cd053c3ff8447e64a (patch) | |
tree | c42dab2f618090ad942f090cebb18cf29578fda4 | |
parent | 69c86cd2c3f1533d9b4b345f98d3922418bc6dac (diff) | |
download | zsh-10c5f95f52e449242170b17cd053c3ff8447e64a.tar.gz zsh-10c5f95f52e449242170b17cd053c3ff8447e64a.tar.xz zsh-10c5f95f52e449242170b17cd053c3ff8447e64a.zip |
37785: skip autoload parameters for "typeset -p"
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/params.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8c8791cf2..a409a3109 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Src/params.c b/Src/params.c index b2e889738..a1f0292cc 100644 --- a/Src/params.c +++ b/Src/params.c @@ -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. |