1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 15:01:40 +02:00

zsh-workers/10168

This commit is contained in:
Tanaka Akira 2000-03-23 03:54:48 +00:00
parent 9117370f0d
commit e205dee960

View file

@ -106,12 +106,16 @@ loop(int toplevel, int justonce)
for (;;) { for (;;) {
freeheap(); freeheap();
errflag = 0; errflag = 0;
hbegin(1); /* init history mech */
if (isset(SHINSTDIN)) { if (isset(SHINSTDIN)) {
setblock_stdin(); setblock_stdin();
if (interact) if (interact) {
int hstop = stophist;
stophist = 3;
preprompt(); preprompt();
stophist = hstop;
}
} }
hbegin(1); /* init history mech */
intr(); /* interrupts on */ intr(); /* interrupts on */
lexinit(); /* initialize lexical state */ lexinit(); /* initialize lexical state */
if (!(prog = parse_event())) { /* if we couldn't parse a list */ if (!(prog = parse_event())) { /* if we couldn't parse a list */