From 7f03c3d851c571d86d18c701d882c13ad5d06c6c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 1 May 2007 22:05:03 +0000 Subject: 23375: Phil Pennock: =~, zsh/regex etc. etc. --- Src/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/text.c') diff --git a/Src/text.c b/Src/text.c index 03ce59cf7..595ebc346 100644 --- a/Src/text.c +++ b/Src/text.c @@ -640,7 +640,7 @@ gettext2(Estate state) { static char *c1[] = { "=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq", - "-ne", "-lt", "-gt", "-le", "-ge" + "-ne", "-lt", "-gt", "-le", "-ge", "=~" }; int ctype; @@ -724,7 +724,7 @@ gettext2(Estate state) } break; default: - if (ctype <= COND_GE) { + if (ctype < COND_MOD) { /* Binary test: `a = b' etc. */ taddstr(ecgetstr(state, EC_NODUP, NULL)); taddstr(" "); -- cgit 1.4.1