From 10c5f95f52e449242170b17cd053c3ff8447e64a Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Tue, 26 Jan 2016 18:17:24 -0800 Subject: 37785: skip autoload parameters for "typeset -p" --- Src/params.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') 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. -- cgit v1.2.3