From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22014 invoked from network); 13 Jan 1999 11:19:05 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Jan 1999 11:19:05 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id GAA28783; Wed, 13 Jan 1999 06:10:20 -0500 (EST) Resent-Date: Wed, 13 Jan 1999 06:10:20 -0500 (EST) Message-ID: <19990113110951.A6955@fysh.org> Date: Wed, 13 Jan 1999 11:09:51 +0000 From: Phil Pennock To: Zsh Development Workers Subject: Re: How sensible is ... ? Mail-Followup-To: Zsh Development Workers References: <19990113102626.A6200@fysh.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.2 In-Reply-To: <19990113102626.A6200@fysh.org>; from "Phil Pennock" on Wed 13 Jan 1999 (10:26 +0000) Organisation: Organisation? Here? No, over there ----> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine and mine alone. Such views do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. Resent-Message-ID: <"uhxcB3.0.g17.Sy7ds"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4895 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Following up to myself (sorry): > Eg, have a directory of zsh scripts, which start: > #!/bin/zsh -f > case $context in > toplevel) alias leave=exit ;; > function) alias leave=return ;; > esac Actually, I've just thought of [[ -o interactive ]] -- always the way. Is this a sufficient test? It /seems/ to work as I want ... -- --> Phil Pennock ; GAT d- s+:+ a23 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+ G+ e+ h* r y?