From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25712 invoked from network); 3 Aug 2003 22:19:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 3 Aug 2003 22:19:59 -0000 Received: (qmail 15262 invoked by alias); 3 Aug 2003 22:19:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6427 Received: (qmail 15251 invoked from network); 3 Aug 2003 22:19:39 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 3 Aug 2003 22:19:38 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.113.203.243] by sunsite.dk (MessageWall 1.0.8) with SMTP; 3 Aug 2003 22:19:38 -0000 Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id 7C0D3513C26A; Mon, 4 Aug 2003 00:18:58 +0200 (CEST) Date: Mon, 4 Aug 2003 00:18:58 +0200 From: Nikolai Weibull To: zsh-users@sunsite.dk Subject: ~/.zshenv or ~/.zprofile Message-ID: <20030803221858.GA2720@puritan.pcp.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i I've always put all my environment stuff in ~/.zshenv. Lately, however, I've come to realize that that may not be such a good idea. I mean, the environment is passed down as it is, why tell shells the same information again? 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. An example would be procmail with ~/.procmailrc. I have the lines: PATH="/usr/bin:/bin" SHELL="/bin/zsh" in my ~/.procmailrc. I recently realized that, as I had set the shell for procmail to invoke sub-processes with to Zsh, that the PATH setting had no effect. This was rather bad, as I was doing some echo debugging in my ~/.zshenv and a lot of mails got messed up in the process. So, anyway, is there _any_ reason to put stuff in ~/.zshenv, and, if so, what? nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,php,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}