summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authortjg <tjg>2002-04-04 10:07:58 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:21 +0100
commitf438af241d1a85f9d6d7b3cd214eb3f11a972e0b (patch)
treef06286def44eac88ceec223563cdf56c9f71920b /main.c
parent5ebf72443b04d110e41c9f2f9dbc6a9796862e38 (diff)
Feature: make $version less magical, and exportable if it's changed
from its default value. Same for $prompt.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index fd373e0..6ce7317 100644
--- a/main.c
+++ b/main.c
@@ -113,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);