From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13317 invoked from network); 14 Apr 1997 16:07:09 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Apr 1997 16:07:09 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id MAA02901; Mon, 14 Apr 1997 12:00:18 -0400 (EDT) Resent-Date: Mon, 14 Apr 1997 11:58:13 -0400 (EDT) Date: Mon, 14 Apr 1997 09:01:21 -0700 (PDT) From: Timothy Luoma X-Sender: luomat@kira Reply-To: Tim Luoma To: mito@sprynet.com cc: zsh-users@math.gatech.edu Subject: Re: strange behaviour with .zsh and su In-Reply-To: <19970414114827.59780@retriever> Message-ID: Organization: The PEAK FTP site for OpenStep & NeXTStep X-FTP: ftp://ftp.next.peak.org/pub/next/ X-URL: http://www.next.peak.org/~luomat MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"oafGc3.0.ef.KGbKp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/804 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > One question: dosen't putting your init commmands in a .zshenv guarantee > that these init files will be sourced on *every* invocation of zsh, even > non-interactive ones? Is it not preferable to have these files sourced > only if the shell is interactive? that would be a bad thing, of course. ZSH has a workaround. Put whatever you want only for interactive inside this: if [[ -o interactive ]] # if an interactive shell then fi TjL -- TjL http://www.peak.org/~luomat/next/ "Give a man a piece of working code and you solve his problem. Teach a man to write code and you give him a lifetime of new problems" -- me