Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How sensible is ... ?



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