From 09960dc5b966fb1a1c20a0af654165e5981a999b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 12 May 2010 10:06:59 +0000 Subject: 27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt --- Src/glob.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Src/glob.c') diff --git a/Src/glob.c b/Src/glob.c index 036f88ccc..c552e6cf1 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -1806,7 +1806,7 @@ zglob(LinkList list, LinkNode np, int nountok) /* Parsed OK, execute for each name */ for (tmpptr = matchbuf; tmpptr < matchptr; tmpptr++) { setsparam("REPLY", ztrdup(tmpptr->name)); - execode(prog, 1, 0); + execode(prog, 1, 0, "globsort"); if (!errflag) tmpptr->sortstrs[iexec] = dupstring(getsparam("REPLY")); @@ -3497,7 +3497,7 @@ qualsheval(char *name, UNUSED(struct stat *buf), UNUSED(off_t days), char *str) unsetparam("reply"); setsparam("REPLY", ztrdup(name)); - execode(prog, 1, 0); + execode(prog, 1, 0, "globqual"); ret = lastval; errflag = ef; @@ -3516,6 +3516,7 @@ qualsheval(char *name, UNUSED(struct stat *buf), UNUSED(off_t days), char *str) inserts = tmparr; } } + return !ret; } return 0; -- cgit 1.4.1