summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorToby Goodwin <tjg@star.le.ac.uk>2002-05-22 14:25:10 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:10 +0100
commit2e67f638ea031ce0138891b6356806b463f5e9af (patch)
treee44106cf9680da9e45153b282a4d3603252ede99 /main.c
parente354cf4fd756584239e7778217ee8860009e6728 (diff)
candidate: rc-1.6c7
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 57a79c3..6ce7317 100644
--- a/main.c
+++ b/main.c
@@ -74,12 +74,13 @@ quitopts:
initsignal();
inithash();
initparse();
- assigndefault("prompt", "; ", "", (void *)0);
+ assigndefault("ifs", " ", "\t", "\n", (void *)0);
#ifdef DEFAULTPATH
assigndefault("path", DEFAULTPATH, (void *)0);
#endif
- assigndefault("ifs", " ", "\t", "\n", (void *)0);
assigndefault("pid", nprint("%d", rc_pid), (void *)0);
+ assigndefault("prompt", "; ", "", (void *)0);
+ assigndefault("version", VERSION, "$Release: @(#)" PACKAGE " " VERSION " " RELDATE " $", (void *)0);
initenv(envp);
initinput();
null[0] = NULL;
@@ -112,6 +113,7 @@ static void assigndefault(char *name,...) {
for (l = NULL; (v = va_arg(ap, char *)) != NULL;)
l = append(l, word(v, NULL));
varassign(name, l, FALSE);
+ set_exportable(name, FALSE);
if (streq(name, "path"))
alias(name, l, FALSE);
va_end(ap);