Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How sensible is ... ?
- X-seq: zsh-workers 4895
- From: Phil Pennock <comet@xxxxxxxx>
- To: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: Re: How sensible is ... ?
- Date: Wed, 13 Jan 1999 11:09:51 +0000
- In-reply-to: <19990113102626.A6200@xxxxxxxx>; from "Phil Pennock" on Wed 13 Jan 1999 (10:26 +0000)
- Mail-followup-to: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Organisation: Organisation? Here? No, over there ---->
- References: <19990113102626.A6200@xxxxxxxx>
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author