From 10787467bc268079951b997b8605dd51cc9047a2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 1 Jul 2009 09:07:07 +0000 Subject: 27079: save lexical context in test builtin --- Src/builtin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 60e81caa4..01e6b479b 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5812,12 +5812,14 @@ bin_test(char *name, char **argv, UNUSED(Options ops), int func) } } + lexsave(); testargs = argv; tok = NULLTOK; condlex = testlex; testlex(); prog = parse_cond(); condlex = zshlex; + lexrestore(); if (errflag) { errflag = 0; -- cgit 1.4.1