if MKSH_SMALL, disable persistent history code as well (like on Solaris,

where it can't work anyway), and fix that code to shrink
saves 2071t 20d 5i
This commit is contained in:
tg
2006-11-10 05:23:14 +00:00
parent 7c4f8d7e16
commit 493ad928e3
5 changed files with 32 additions and 24 deletions

4
main.c
View File

@ -13,7 +13,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.54 2006/11/10 03:23:49 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.55 2006/11/10 05:23:12 tg Exp $");
extern char **environ;
@ -597,8 +597,10 @@ quitenv(struct shf *shf)
*/
if (ep->oenv == NULL) {
if (ep->type == E_NONE) { /* Main shell exiting? */
#ifdef V_HISTFILE
if (Flag(FTALKING))
hist_finish();
#endif
j_exit();
if (ep->flags & EF_FAKE_SIGDIE) {
int sig = exstat - 128;