summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/init.c18
2 files changed, 14 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 892e8bc87..0986ee59f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-29 Vin Shelton <acs@xemacs.org>
+
+ * 22789: Src/init.c: Source zshenv even if non-interactive.
+
2006-09-29 Andrey Borzenkov <bor@zsh.org>
* 22787: Srz/Zsh/compmatch.c: change calling convention of
diff --git a/Src/init.c b/Src/init.c
index 4121e9b70..7645af6b2 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -958,15 +958,17 @@ run_init_scripts(void)
source(GLOBAL_ZSHENV);
#endif
- if (isset(RCS) && isset(INTERACTIVE) && unset(PRIVILEGED))
+ if (isset(RCS) && unset(PRIVILEGED))
{
- /*
- * Always attempt to load the newuser module to perform
- * checks for new zsh users. Don't care if we can't load it.
- */
- if (load_module_silence("zsh/newuser", 1)) {
- /* Unload it immediately. */
- unload_named_module("zsh/newuser", "zsh", 1);
+ if (isset(INTERACTIVE)) {
+ /*
+ * Always attempt to load the newuser module to perform
+ * checks for new zsh users. Don't care if we can't load it.
+ */
+ if (load_module_silence("zsh/newuser", 1)) {
+ /* Unload it immediately. */
+ unload_named_module("zsh/newuser", "zsh", 1);
+ }
}
sourcehome(".zshenv");