summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authortjg <tjg>2002-04-03 14:57:21 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:21 +0100
commit5ebf72443b04d110e41c9f2f9dbc6a9796862e38 (patch)
treefe5cd2f68a4127c2aa14a2bdc343e4ec292fb383 /main.c
parent94fa27339355b25aeb93a02ac36ab3b7921810b5 (diff)
Feature: make $version less magical, and exportable.
Bug: make $bqstatus and $status not exportable.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 57a79c3..fd373e0 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;