From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27429 invoked by alias); 11 Mar 2014 03:00:03 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18582 Received: (qmail 1113 invoked from network); 11 Mar 2014 02:59:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=Xr3DZz19 c=1 sm=1 tr=0 a=C0g08kOJMvqFFjNsah5K5g==:117 a=C0g08kOJMvqFFjNsah5K5g==:17 a=HIA4oEAs-AEA:10 a=CGm-5s3DPqMA:10 a=8nJEP1OIZ-IA:10 a=GHMSBvqMoKjMMMeCi5MA:9 a=wPNLvfGTeEIA:10 a=4mW_y19Wh-gA:10 a=NBlKXW4BrssA:10 Message-id: <531E7C37.9070302@eastlink.ca> Date: Mon, 10 Mar 2014 20:00:07 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: return up two levels? References: <140310083224.ZM10646@torch.brasslantern.com> <531E0393.6060106@eastlink.ca> <20140310194239.0a3bde92@pws-pc.ntlworld.com> In-reply-to: <20140310194239.0a3bde92@pws-pc.ntlworld.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 03/10/2014 12:42 PM, Peter Stephenson wrote: Peter: > function1() { function2; print Doesn\'t get called; } > function2() { trap 'return' EXIT; print Does get called; } Thanks, that about does it. I've not used traps up till now. BTW I'm enjoying your book. Hats off to Oliver as well of course.