From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22746 invoked from network); 19 Aug 2001 23:45:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Aug 2001 23:45:48 -0000 Received: (qmail 12227 invoked by alias); 19 Aug 2001 23:45:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4148 Received: (qmail 12215 invoked from network); 19 Aug 2001 23:45:38 -0000 From: Bart Schaefer Message-Id: <1010819234524.ZM19003@candle.brasslantern.com> Date: Sun, 19 Aug 2001 23:45:24 +0000 In-Reply-To: <20010819211246.A2466@ay.nerim.net> Comments: In reply to Vincent Lefevre "Re: Broken /etc/zshrc ?" (Aug 19, 9:12pm) References: <20010819175147.A1889@ay.nerim.net> <1010819180607.ZM17395@candle.brasslantern.com> <20010819211246.A2466@ay.nerim.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Vincent Lefevre , zsh-users@sunsite.dk Subject: Re: Broken /etc/zshrc ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 19, 9:12pm, Vincent Lefevre wrote: } } So, is sourcing the /etc/profile a good idea? Shouldn't it be sourced } only if the shell is a login shell? If it were sourced from /etc/zprofile, then it would be sourced only if the shell were a login shell, because that's the rule for /etc/zprofile. } > [[ -o login && -r /etc/zprofile ]] && source /etc/zprofile } > [[ -o interactive && -r /etc/zshrc ]] && source /etc/zshrc } > [[ -o login && -r /etc/zlogin ]] && source /etc/zlogin } } OK, if I need to read these files, I'll do this. You may not need to read those files. It depends on what the sysadmin has put in them. E.g., as I mentioned before, on Mandrake your local language environment won't be set up correctly if you don't read them. I don't know about SuSE. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net