diff options
author | Bart Schaefer <schaefer@ipost.com> | 2021-04-12 13:59:06 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@ipost.com> | 2021-04-12 13:59:06 -0700 |
commit | b3613e4895f7b059558c4ef211189b516dbf903d (patch) | |
tree | 5ac6989a564cfb079b73a1f13a3d2a89ff881bb9 /Src | |
parent | e67ccd7f1efae7696dc17f6e3e720cd994e90155 (diff) | |
download | zsh-b3613e4895f7b059558c4ef211189b516dbf903d.tar.gz zsh-b3613e4895f7b059558c4ef211189b516dbf903d.tar.xz zsh-b3613e4895f7b059558c4ef211189b516dbf903d.zip |
Change TYPESET_DOES_NOT_SET to TYPESET_TO_UNSET to avoid double-negative
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 2 | ||||
-rw-r--r-- | Src/options.c | 2 | ||||
-rw-r--r-- | Src/zsh.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index edd4cad44..6d119f7a5 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2491,7 +2491,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), return NULL; } } - if (isset(TYPESETDOESNOTSET)) + if (isset(TYPESETTOUNSET)) pm->node.flags |= PM_DEFAULTED; } else { if (idigit(*pname)) diff --git a/Src/options.c b/Src/options.c index 766ffdfdb..23935ae18 100644 --- a/Src/options.c +++ b/Src/options.c @@ -257,8 +257,8 @@ static struct optname optns[] = { {{NULL, "sunkeyboardhack", 0}, SUNKEYBOARDHACK}, {{NULL, "transientrprompt", 0}, TRANSIENTRPROMPT}, {{NULL, "trapsasync", 0}, TRAPSASYNC}, -{{NULL, "typesetdoesnotset", OPT_EMULATE|OPT_BOURNE}, TYPESETDOESNOTSET}, {{NULL, "typesetsilent", OPT_EMULATE|OPT_BOURNE}, TYPESETSILENT}, +{{NULL, "typesettounset", OPT_EMULATE|OPT_BOURNE}, TYPESETTOUNSET}, {{NULL, "unset", OPT_EMULATE|OPT_BSHELL}, UNSET}, {{NULL, "verbose", 0}, VERBOSE}, {{NULL, "vi", 0}, VIMODE}, diff --git a/Src/zsh.h b/Src/zsh.h index 12efb784f..490407ad0 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -2536,8 +2536,8 @@ enum { SUNKEYBOARDHACK, TRANSIENTRPROMPT, TRAPSASYNC, - TYPESETDOESNOTSET, TYPESETSILENT, + TYPESETTOUNSET, UNSET, VERBOSE, VIMODE, |