oops…
This commit is contained in:
parent
4310e75f75
commit
5edb355336
6
var.c
6
var.c
@ -28,7 +28,7 @@
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.205 2016/07/25 20:43:54 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.206 2016/07/25 21:02:13 tg Exp $");
|
||||
|
||||
/*-
|
||||
* Variables
|
||||
@ -1290,9 +1290,11 @@ setspec(struct tbl *vp)
|
||||
/* clear tracked aliases */
|
||||
flushcom(true);
|
||||
return;
|
||||
#ifndef MKSH_NO_CMDLINE_EDITING
|
||||
case V_TERM:
|
||||
x_initterm(str_val(vp));
|
||||
return;
|
||||
#endif
|
||||
case V_TMPDIR:
|
||||
afree(tmpdir, APERM);
|
||||
tmpdir = NULL;
|
||||
@ -1409,9 +1411,11 @@ unsetspec(struct tbl *vp)
|
||||
/* clear tracked aliases */
|
||||
flushcom(true);
|
||||
break;
|
||||
#ifndef MKSH_NO_CMDLINE_EDITING
|
||||
case V_TERM:
|
||||
x_initterm(null);
|
||||
return;
|
||||
#endif
|
||||
case V_TMPDIR:
|
||||
/* should not become unspecial */
|
||||
if (tmpdir) {
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#if defined(VARSPEC_DEFNS)
|
||||
__RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.8 2016/07/25 20:43:54 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.9 2016/07/25 21:02:13 tg Exp $");
|
||||
#define FN(name) /* nothing */
|
||||
#elif defined(VARSPEC_ENUMS)
|
||||
#define FN(name) V_##name,
|
||||
@ -53,7 +53,9 @@ FN(OPTIND)
|
||||
FN(PATH)
|
||||
FN(RANDOM)
|
||||
FN(SECONDS)
|
||||
#ifndef MKSH_NO_CMDLINE_EDITING
|
||||
FN(TERM)
|
||||
#endif
|
||||
FN(TMOUT)
|
||||
FN(TMPDIR)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user