From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10700 invoked from network); 19 Aug 2001 16:53:40 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Aug 2001 16:53:40 -0000 Received: (qmail 18632 invoked by alias); 19 Aug 2001 16:53:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4141 Received: (qmail 18621 invoked from network); 19 Aug 2001 16:53:28 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: Borsenkow Andrej To: Vincent Lefevre Cc: zsh-users@sunsite.dk Message-ID: <3B7FEF79.5040602@mow.siemens.ru> Date: Sun, 19 Aug 2001 20:55:21 +0400 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010802 X-Accept-Language: en-us MIME-Version: 1.0 Subject: Re: Broken /etc/zshrc ? References: <20010819175147.A1889@ay.nerim.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Vincent Lefevre wrote: > The /etc/zshrc (system zshrc file) contains the following line: > > source /etc/profile > > But /etc/profile sets the path (I think this is OK). Thus, if a > user sets his path in his .zshenv, then this path is lost because > /etc/zshrc is sourced after the user's .zshenv file. > > I don't know if the /etc/zshrc was provided when compiling and > installing zsh or provided by my Linux distribution (SuSE 7.2). zsh does not install any startup files > Isn't this /etc/zshrc file broken? Shouldn't the /etc/profile > be sourced in the /etc/zshenv (which doesn't exist here)? > /etc/profile should be sourced in /etc/zprofile if at all. Irrespectively, unconditional setting of PATH is always bad - PATH may be already preset to some reasonable value. -andrej