about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-06-12 09:27:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-06-12 09:27:09 +0000
commit055d961f84fcfb430aceb40bdb7932d962b143e9 (patch)
tree75ccaf7156e47c96ffe471f7c94054f28bf7a67d /Src/params.c
parent21f6b9d14c100f0887d03422a21c57a0e327fde1 (diff)
downloadzsh-055d961f84fcfb430aceb40bdb7932d962b143e9.tar.gz
zsh-055d961f84fcfb430aceb40bdb7932d962b143e9.tar.xz
zsh-055d961f84fcfb430aceb40bdb7932d962b143e9.zip
11867: restrict typeset -H application
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c3
1 files changed, 2 insertions, 1 deletions
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;