diff options
author | Peter Stephenson <pws@zsh.org> | 2016-09-13 09:42:24 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-09-13 09:42:24 +0100 |
commit | 1993a3cd2a7b479530da8f37f6fb3ea05a0efb71 (patch) | |
tree | 1b352222ea93c281cddae037a09847439a1ace2f /Src/text.c | |
parent | 23c1c774b95861209fe97d1436b6563d5946f939 (diff) | |
download | zsh-1993a3cd2a7b479530da8f37f6fb3ea05a0efb71.tar.gz zsh-1993a3cd2a7b479530da8f37f6fb3ea05a0efb71.tar.xz zsh-1993a3cd2a7b479530da8f37f6fb3ea05a0efb71.zip |
39292: Distinguish "=" and "==" tests in output.
This is both in xtrace output and shell code rebuilt from internal structures.
Diffstat (limited to 'Src/text.c')
-rw-r--r-- | Src/text.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/text.c b/Src/text.c index d387d361a..3658b1bc6 100644 --- a/Src/text.c +++ b/Src/text.c @@ -46,7 +46,7 @@ int text_expand_tabs; * et seq. in zsh.h. */ static const char *cond_binary_ops[] = { - "=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq", + "=", "==", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq", "-ne", "-lt", "-gt", "-le", "-ge", "=~", NULL }; @@ -934,6 +934,7 @@ gettext2(Estate state) taddstr(" "); taddstr(ecgetstr(state, EC_NODUP, NULL)); if (ctype == COND_STREQ || + ctype == COND_STRDEQ || ctype == COND_STRNEQ) state->pc++; } else { |