summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/zpty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index 30a36b194..2408be797 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -357,8 +357,8 @@ newptycmd(char *nam, char *pname, char **args, int echo, int nblock)
 	init_io();
 	setsparam("TTY", ztrdup(ttystrname));
 
-	execode(prog, 1, 0);
 	opts[INTERACTIVE] = 0;
+	execode(prog, 1, 0);
 	stopmsg = 2;
 	zexit(lastval, 0);
     }