From 60b410fd7c709f0332355a0b013e92461d3e07ec Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 5 Nov 2008 13:01:56 +0000 Subject: "typeset -g " should be silent even without TYPESET_SILENT --- Src/builtin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/builtin.c b/Src/builtin.c index b6cd9610d..0748eaccc 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1951,7 +1951,8 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), if (!on && !roff && !value) { if (OPT_ISSET(ops,'p')) paramtab->printnode(&pm->node, PRINT_TYPESET); - else if (unset(TYPESETSILENT) || OPT_ISSET(ops,'m')) + else if (!OPT_ISSET(ops,'g') && + (unset(TYPESETSILENT) || OPT_ISSET(ops,'m'))) paramtab->printnode(&pm->node, PRINT_INCLUDEVALUE); return pm; } -- cgit 1.4.1