zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.de>
To: zsh workers <zsh-workers@sunsite.dk>
Subject: newuser loaded for scripts
Date: Wed, 27 Sep 2006 22:33:35 +0200	[thread overview]
Message-ID: <20060927203335.GC22780@fsst.voodoo.lan> (raw)

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


             reply	other threads:[~2006-09-27 20:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 20:33 Frank Terbeck [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060927203335.GC22780@fsst.voodoo.lan \
    --to=ft@bewatermyfriend.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).