From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8436 invoked from network); 5 Sep 2006 21:09:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Sep 2006 21:09:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 46059 invoked from network); 5 Sep 2006 21:09:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Sep 2006 21:09:01 -0000 Received: (qmail 23299 invoked by alias); 5 Sep 2006 21:08:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10686 Received: (qmail 23289 invoked from network); 5 Sep 2006 21:08:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Sep 2006 21:08:51 -0000 Received: (qmail 44876 invoked from network); 5 Sep 2006 21:08:51 -0000 Received: from vanunu.ucsc.edu (128.114.150.22) by a.mx.sunsite.dk with SMTP; 5 Sep 2006 21:08:47 -0000 Received: from localhost (localhost [127.0.0.1]) by vanunu.ucsc.edu (Postfix) with ESMTP id 8243624D5784; Tue, 5 Sep 2006 14:08:45 -0700 (PDT) Date: Tue, 5 Sep 2006 14:08:45 -0700 (PDT) From: William Scott X-X-Sender: wgscott@vanunu.ucsc.edu To: Chris Johnson Cc: zsh-users@sunsite.dk Subject: Re: Where PATH is set In-Reply-To: <20060905183120.GA10848@cetus30.cs.utk.edu> Message-ID: References: <20060905183120.GA10848@cetus30.cs.utk.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Hi Chris: If you want, you can have my system administrator: % print $ZSH_VERSION 3.0.8 When I compiled 4.2.5, ours hid the compiler. /etc/zshenv makes the most sense, but they should also be appending or prepending directories as you point out. The only real solution to such 'political' problems is to buy your own computer and be your own system administrator. Unfortunately, this did not result in a factor of 3 pay increase. If you want the job done right, you have to do it yourself I am afraid, unless, unlike me, you work at a real university, instead of DIYU. Bill On Tue, 5 Sep 2006, Chris Johnson wrote: > I have a political question I could use some help on. My system > administrators currently set PATH in /etc/zshrc. The assignment is > literal; no existing value is checked for. They assign the exact same > thing to PATH in /etc/zshenv so that "ssh machine command" will work the > same way. > > This setup forces me to similarly assign PATH twice, once in ~/.zshenv > and once in ~/.zshrc. My changes to PATH in ~/.zshenv are overwritten > by the system's /etc/zshrc. But I want PATH to contain the same > directories whether the shell is interactive or not. So, I need to > assign to PATH again in ~/.zshrc. I think this is a horrible setup, a > trap for inconsistencies just waiting to snare users, but the sysadmins > think its a non-issue. > > Peter has some lines in the zsh Guide, section 2.5.10, about how zshenv > is the cleanest place to set environment variables, PATH included. I've > pointed this out to my sysadmins, but they are looking for further > documentation and recommendation of this practice. Does anyone have any > input that I could send their way? > > I suppose you could disagree with me if you wanted to, but I won't > forward that along to them. > > -- > Chris Johnson > cjohnson@cs.utk.edu > http://www.cs.utk.edu/~cjohnson >