From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23365 invoked by alias); 13 Mar 2013 20:43:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17693 Received: (qmail 13557 invoked from network); 13 Mar 2013 20:43:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.215.178 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=9lBsJ4tdaCKTRfUMjESi72R9IWt8OvO8FLBEZUMbNZI=; b=uhhnU9i4wgx8KH5oCItp4kNqBokNhFikXVA43MRjOBmJyHFguzaSjFTeAWDaoviu/2 igkqSiuNpKwj/wg+XvdYarWRaaR4F+vmo4nu/cYg9bPdVG1m9gloXoXltzGsEE1gYIpP iHMDDAeE4UhD8E9jDlNmjiUUtbW4V4KVoBJy3ZT1uvyvIYWDf7BvJq7EKfoRaO8BZOLT rGov69Haw5WNoRx+e60J1WbrAwdhQYEc/+00mzsLc9hDn4zBRV7AjcLxCu2LJvcv+dTM 68J055ENq3fO+CirbSKvYMpTN94LeguzZ7DZE4xUyrFGErxddAK4VYh8MbmUMocy8RGT x6VQ== MIME-Version: 1.0 X-Received: by 10.14.173.196 with SMTP id v44mr55128253eel.29.1363207400478; Wed, 13 Mar 2013 13:43:20 -0700 (PDT) In-Reply-To: <7054F6AC-DD66-4174-A199-D30DBF5E5E4A@macports.org> References: <7054F6AC-DD66-4174-A199-D30DBF5E5E4A@macports.org> Date: Wed, 13 Mar 2013 16:43:20 -0400 Message-ID: Subject: Re: Latest stable release of zsh triggers the addition of paths to $PATH From: James Jong To: =?ISO-8859-1?Q?Lawrence_Vel=E1zquez?= Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=047d7b604368dc7dc704d7d47415 --047d7b604368dc7dc704d7d47415 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks yes. There are lots of /etc/z* files and some of them have stuff in them, so that seems to be the problem. More specifically: The file /etc/zprofile sources /etc/profile which has stuff in it The file /etc/zshrc has the following: if [ "x$SHLVL" !=3D "x1" ]; then for i in /etc/profile.d/*.sh; do if [ -r "$i" ]; then . $i fi done unset i fi At this point I have some questions: 1) What doest the if statement above test? 2) When I run a zsh script, how can I prevent it from running /etc/zshrc? 3) When I switch to zsh from tcsh on an interactive shell using exec zsh -l, how I can I prevent it from running /etc/zprofile? Thanks again for all your help, James On Tue, Mar 12, 2013 at 8:20 PM, Lawrence Vel=E1zquez = wrote: > On Mar 12, 2013, at 6:26 PM, James Jong wrote: > > > Thanks. I just checked and /etc/zshenv is empty (it only has a few > automatically-generated comments explaining what it is for). > > Are there any other /etc/z* files? > > vq --047d7b604368dc7dc704d7d47415--