Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

newuser loaded for scripts



Hi workers!

Somebody who doesn't use zsh wondered, why the shell wants to
configure itself, just because he wants to run a script that is
written in zsh.

Only loading the newuser module if the shell is interactive (which
should be enough) would fix this. I'm not too familiar with the zsh
code, but the change should be trivial.

Regards, Frank

--- Src/init.c.orig	2006-09-27 21:57:15.000000000 +0200
+++ Src/init.c	2006-09-27 21:57:39.000000000 +0200
@@ -958,7 +958,7 @@
 	source(GLOBAL_ZSHENV);
 #endif
 
-	if (isset(RCS) && unset(PRIVILEGED))
+	if (isset(RCS) && isset(INTERACTIVE) && unset(PRIVILEGED))
 	{
 	    /*
 	     * Always attempt to load the newuser module to perform



Messages sorted by: Reverse Date, Date, Thread, Author