Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4
- X-seq: zsh-workers 11607
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4
- Date: Sat, 27 May 2000 08:24:06 +0000
- In-reply-to: <1000523161048.ZM1121@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200005230831.KAA23545@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <0FV000FFM9H4SI@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1000523154455.ZM1095@xxxxxxxxxxxxxxxxxxxxxxx> <1000523161048.ZM1121@xxxxxxxxxxxxxxxxxxxxxxx>
On May 23, 4:10pm, Bart Schaefer wrote:
} Subject: Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4
}
} } + } else if (!shout) {
} } + haso = 1;
} } + oshout = shout;
} } + init_shout();
} } }
}
} What horrible things would happen if `haso' were simply left as 0 here?
No one has had anything to say about this, so I've committed the following
patch.
Index: builtin.c
===================================================================
@@ -3406,6 +3406,9 @@
oshout = shout;
init_shout();
}
+ } else if (!shout) {
+ /* We need an output FILE* on the tty */
+ init_shout();
}
/* We should have a SHTTY opened by now. */
if (SHTTY == -1) {
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author