summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjg <tjg>2001-10-12 09:29:49 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:20 +0100
commit0d3f5de9280d8854871efd8a99d1590ea768e350 (patch)
tree8fc424f912d69643cb6d5b18c2617d8eefdd4b2e
parent46f562d0552458b4cf13a11dd342080f73852f09 (diff)
Feature: don't export $cdpath or $home (the lower-case versions).
-rw-r--r--hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index fd182cc..16971ef 100644
--- a/hash.c
+++ b/hash.c
@@ -230,7 +230,8 @@ extern void initenv(char **envp) {
static bool var_exportable(char *s) {
static char *notforexport[] = {
- "apid", "apids", "ifs", "path", "pid", "version", "*"
+ "apid", "apids", "cdpath", "home", "ifs",
+ "path", "pid", "version", "*"
};
int i;
for (i = 0; i < arraysize(notforexport); i++)