From 7d9ead9a469792959c90ec1df091e2e10b9fc11d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 4 Jan 2008 14:45:39 +0000 Subject: 24356: regex =~ test wasnt handled by gettext() --- Src/text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/text.c') diff --git a/Src/text.c b/Src/text.c index 595ebc346..593c25776 100644 --- a/Src/text.c +++ b/Src/text.c @@ -732,7 +732,8 @@ gettext2(Estate state) taddstr(" "); taddstr(ecgetstr(state, EC_NODUP, NULL)); if (ctype == COND_STREQ || - ctype == COND_STRNEQ) + ctype == COND_STRNEQ || + ctype == COND_REGEX) state->pc++; } else { /* Unary test: `-f foo' etc. */ -- cgit 1.4.1