summary refs log tree commit diff
path: root/Src/loop.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-02-17 14:06:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-02-17 14:06:39 +0000
commit4c149a8abc198d38008c9f5b4eeb80a9c73a0722 (patch)
tree07b81bcf865c9f735de02415a86491b039a2e860 /Src/loop.c
parent40c29457f285deaba4959dd23d5f2dd859ddb956 (diff)
downloadzsh-4c149a8abc198d38008c9f5b4eeb80a9c73a0722.tar.gz
zsh-4c149a8abc198d38008c9f5b4eeb80a9c73a0722.tar.xz
zsh-4c149a8abc198d38008c9f5b4eeb80a9c73a0722.zip
18252: pass ignoreeof as flag to zleread
Diffstat (limited to 'Src/loop.c')
-rw-r--r--Src/loop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Src/loop.c b/Src/loop.c
index ebb07445b..4da5a50f0 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -202,7 +202,7 @@ execselect(Estate state, int do_exec)
     wordcode code = state->pc[-1];
     char *str, *s, *name;
     LinkNode n;
-    int i, usezle, oignoreeof = opts[IGNOREEOF];
+    int i, usezle;
     FILE *inp;
     size_t more;
     LinkList args;
@@ -238,7 +238,6 @@ execselect(Estate state, int do_exec)
     inp = fdopen(dup(usezle ? SHTTY : 0), "r");
     more = selectlist(args, 0);
     loop = state->pc;
-    opts[IGNOREEOF] = 0;
     for (;;) {
 	for (;;) {
 	    if (empty(bufstack)) {
@@ -302,7 +301,6 @@ execselect(Estate state, int do_exec)
     fclose(inp);
     loops--;
     state->pc = end;
-    opts[IGNOREEOF] = oignoreeof;
     return lastval;
 }