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

6
var.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.25 2006/11/10 04:22:13 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.26 2006/11/10 05:23:14 tg Exp $");
/*
* Variables
@ -88,7 +88,9 @@ initvar(void)
{ "OPTIND", V_OPTIND },
{ "PATH", V_PATH },
{ "TMPDIR", V_TMPDIR },
#ifdef V_HISTFILE
{ "HISTFILE", V_HISTFILE },
#endif
{ "HISTSIZE", V_HISTSIZE },
{ "RANDOM", V_RANDOM },
{ "SECONDS", V_SECONDS },
@ -991,9 +993,11 @@ setspec(struct tbl *vp)
sethistsize((int) intval(vp));
vp->flag |= SPECIAL;
break;
#ifdef V_HISTFILE
case V_HISTFILE:
sethistfile(str_val(vp));
break;
#endif
case V_COLUMNS:
if ((x_cols = intval(vp)) <= MIN_COLS)
x_cols = MIN_COLS;