* zsh exits suddenly.
@ 1998-06-23 14:45 Tanaka Akira
1998-06-23 18:25 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Tanaka Akira @ 1998-06-23 14:45 UTC (permalink / raw)
To: zsh-users
I have a trouble that zsh exits as following.
akr@carbon% cd /usr/local/bin<^M>
akr@carbon% uname -a<^M>
SunOS carbon 4.1.4 1 sun4m
akr@carbon% zsh -c 'echo $ZSH_VERSION'<^M>
3.0.5-extended
akr@carbon% zsh -f<^M>
carbon% ls <^D>
zsh: do you wish to see all 848 possibilities? <^C>n
carbon% ls <^M>
akr@carbon%
When typing <n> instead of <^C>, zsh works fine.
But I has habit that type <^C> frequently.
How do I make zsh to not exit after <^C>?
--
[Tanaka Akira]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh exits suddenly.
1998-06-23 14:45 zsh exits suddenly Tanaka Akira
@ 1998-06-23 18:25 ` Bart Schaefer
1998-06-23 20:35 ` Tanaka Akira
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 1998-06-23 18:25 UTC (permalink / raw)
To: zsh-users, Tanaka Akira
On Jun 23, 11:45pm, Tanaka Akira wrote:
} Subject: zsh exits suddenly.
}
} I have a trouble that zsh exits as following.
}
} carbon% ls <^D>
} zsh: do you wish to see all 848 possibilities? <^C>n
} carbon% ls <^M>
} akr@carbon%
3.1.4 has the same problem. This is exactly the bug that I described in
<http://www.zsh.org/mla/workers-1998/msg00372.html> (article 4037 if you
use the FTP archive (thanks, Geoff)) -- interrupting a read() with SIGINT
causes zsh to set lexstop to 1, which eventually causes the shell to exit.
I finally figured out where that's happening -- it's in ingetc(), which
is called from the SIGINT handler() via inerrflush(). However, I still
don't know how to fix the problem.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh exits suddenly.
1998-06-23 18:25 ` Bart Schaefer
@ 1998-06-23 20:35 ` Tanaka Akira
0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 1998-06-23 20:35 UTC (permalink / raw)
To: Bart Schaefer; +Cc: zsh-users
In article <980623112518.ZM375@candle.brasslantern.com>,
"Bart Schaefer" <schaefer@brasslantern.com> writes:
> I finally figured out where that's happening -- it's in ing%tc(), which
> is called from the SIGINT handler() via inerrflush(). However, I still
> don't know how to fix the problem.
Why following fix is wrong?
------------------------------------------------------------
--- signals.c.org Wed Jun 24 04:38:45 1998
+++ signals.c Wed Jun 24 04:40:24 1998
@@ -479,6 +479,7 @@
breaks = loops;
errflag = 1;
inerrflush();
+ lexstop = 0;
}
}
break;
------------------------------------------------------------
Although I found that setopt ignoreeof prevents exiting zsh suddenly
in exchange for annoying errors...
--
[Tanaka Akira]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-06-23 20:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-23 14:45 zsh exits suddenly Tanaka Akira
1998-06-23 18:25 ` Bart Schaefer
1998-06-23 20:35 ` Tanaka Akira
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).