summaryrefslogtreecommitdiff
path: root/var.c
diff options
context:
space:
mode:
authortjg <tjg>2002-08-15 12:51:27 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:22 +0100
commit8f81d22c989808d3889a7ad6806903adec5ae27b (patch)
treeeb8bca6635597824efa25c28747b6a81c7c33254 /var.c
parent192d9da98404dc93eb1e5bcc2b1c810d5c6c8435 (diff)
Bug: variables that are sometimes exported (i.e. $prompt and
$version) need to be made exportable if they are inherited from the environment.
Diffstat (limited to 'var.c')
-rw-r--r--var.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/var.c b/var.c
index 83c5ff9..ee8c228 100644
--- a/var.c
+++ b/var.c
@@ -48,6 +48,7 @@ extern bool varassign_string(char *extdef) {
strcpy(new->extdef, extdef);
if (i != -1)
alias(name, varlookup(name), FALSE);
+ set_exportable(name, TRUE);
return TRUE;
}