From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26767 invoked from network); 3 Aug 2003 22:40:02 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 3 Aug 2003 22:40:02 -0000 Received: (qmail 21108 invoked by alias); 3 Aug 2003 22:39:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6428 Received: (qmail 21096 invoked from network); 3 Aug 2003 22:39:51 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 3 Aug 2003 22:39:51 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [192.54.253.222] by sunsite.dk (MessageWall 1.0.8) with SMTP; 3 Aug 2003 22:39:50 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id ED4D62D36; Sun, 3 Aug 2003 15:39:49 -0700 (PDT) Date: Sun, 3 Aug 2003 15:39:49 -0700 From: Wayne Davison To: Nikolai Weibull Cc: zsh-users@sunsite.dk Subject: Re: ~/.zshenv or ~/.zprofile Message-ID: <20030803223949.GA18476@binome.blorf.net> References: <20030803221858.GA2720@puritan.pcp.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030803221858.GA2720@puritan.pcp.ath.cx> User-Agent: Mutt/1.5.4i On Mon, Aug 04, 2003 at 12:18:58AM +0200, Nikolai Weibull wrote: > The problem really is that if you put, for example, your PATH > definition in ~/.zshenv, and have a script or application that > modifies PATH and later runs a shell, that shell will not use the > specifically crafted PATH, but will read the standard one from > ~/.zshenv. Exactly. I got bit by this a few years ago when I had a .zshenv file and was using gdb -- it runs a $SHELL to start the debugged program, and this overrode some environment values that I did NOT want touched (ouch). I now use no .zshenv file at all, and I cannot think of any good reason for me (or for most typical users) to need one. I now use .zprofile and .zshrc, and I even have a special line in my .zshrc file that sources .zprofile if it discovers that .zprofile has not been sourced yet (which had happened to me in some circumstances before, but is not a problem in my current situation where I first login, and then run X Windows). ..wayne..