Subject: Re: C02cond.ztst segfaults (was: Re: Strange test suite behaviour since zsh 5.2-dev-1: C02cond.ztst no more reports its finishing)
From: Bart Schaefer <[email-masked]>
To: [email-masked]
Date: Sun, 31 Jan 2016 15:12:51 -0800
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Feb 1, 12:03am, Axel Beckert wrote:
}
} Program terminated with signal SIGSEGV, Segmentation fault.
} #1  0x000055e7dc4af8f4 in is_cond_binary_op (str=0x7f05376fe238 "non-empty-string") at ../../Src/text.c:63

Try this:

diff --git a/Src/text.c b/Src/text.c
index 04acd2a..cf6d3eb 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -47,7 +47,7 @@ int text_expand_tabs;
  */
 static const char *cond_binary_ops[] = {
     "=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq",
-    "-ne", "-lt", "-gt", "-le", "-ge", "=~"
+    "-ne", "-lt", "-gt", "-le", "-ge", "=~", NULL
 };
 
 static char *tptr, *tbuf, *tlim, *tpending;