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

Re: return up two levels?



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.



Messages sorted by: Reverse Date, Date, Thread, Author