Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
newuser loaded for scripts
- X-seq: zsh-workers 22783
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: newuser loaded for scripts
- Date: Wed, 27 Sep 2006 22:33:35 +0200
- Mail-followup-to: zsh workers <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.16.16 i686
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