From 055d961f84fcfb430aceb40bdb7932d962b143e9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 12 Jun 2000 09:27:09 +0000 Subject: 11867: restrict typeset -H application --- Src/params.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/params.c') diff --git a/Src/params.c b/Src/params.c index f57173495..2768c273d 100644 --- a/Src/params.c +++ b/Src/params.c @@ -3181,7 +3181,8 @@ printparamnode(HashNode hn, int printflags) printf("exported "); } - if ((printflags & PRINT_NAMEONLY) || (p->flags & PM_HIDEVAL)) { + if ((printflags & PRINT_NAMEONLY) || + ((p->flags & PM_HIDEVAL) && !(printflags & PRINT_INCLUDEVALUE))) { zputs(p->nam, stdout); putchar('\n'); return; -- cgit 1.4.1