summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-05-12 10:06:59 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-05-12 10:06:59 +0000
commit09960dc5b966fb1a1c20a0af654165e5981a999b (patch)
tree35ab00d38eb789f60081d8dac148d64ea9f04624 /Src/init.c
parentcb8ddf171e9568f36bf0e2315282b638ab119ca5 (diff)
downloadzsh-09960dc5b966fb1a1c20a0af654165e5981a999b.tar.gz
zsh-09960dc5b966fb1a1c20a0af654165e5981a999b.tar.xz
zsh-09960dc5b966fb1a1c20a0af654165e5981a999b.zip
27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/init.c b/Src/init.c
index 56c8c1822..dea9aff40 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -182,7 +182,7 @@ loop(int toplevel, int justonce)
 	    }
 	    if (stopmsg)	/* unset 'you have stopped jobs' flag */
 		stopmsg--;
-	    execode(prog, 0, 0);
+	    execode(prog, 0, 0, toplevel ? "toplevel" : "file");
 	    tok = toksav;
 	    if (toplevel)
 		noexitct = 0;
@@ -1125,7 +1125,7 @@ init_misc(void)
 	    fclose(bshin);
 	SHIN = movefd(open("/dev/null", O_RDONLY | O_NOCTTY));
 	bshin = fdopen(SHIN, "r");
-	execstring(cmd, 0, 1);
+	execstring(cmd, 0, 1, "cmdarg");
 	stopmsg = 1;
 	zexit(lastval, 0);
     }
@@ -1213,7 +1213,7 @@ source(char *s)
     if (prog) {
 	pushheap();
 	errflag = 0;
-	execode(prog, 1, 0);
+	execode(prog, 1, 0, "filecode");
 	popheap();
 	if (errflag)
 	    ret = SOURCE_ERROR;