zsh-workers
 help / color / mirror / code / Atom feed
* newuser loaded for scripts
@ 2006-09-27 20:33 Frank Terbeck
  2006-09-28  9:41 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Terbeck @ 2006-09-27 20:33 UTC (permalink / raw)
  To: zsh workers

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-29 22:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-27 20:33 newuser loaded for scripts Frank Terbeck
2006-09-28  9:41 ` Peter Stephenson
2006-09-29 17:56   ` Vin Shelton
2006-09-29 20:46     ` Peter Stephenson
2006-09-29 22:10     ` Frank Terbeck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).