Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
return up two levels?
- X-seq: zsh-users 18580
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: return up two levels?
- Date: Mon, 10 Mar 2014 11:25:23 -0700
- In-reply-to: <lfksrv$vgj$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <lfk949$rs$1@ger.gmane.org> <140310083224.ZM10646@torch.brasslantern.com> <lfksrv$vgj$1@ger.gmane.org>
Didn't I read somewhere that one can return from a function 'up two 
levels'? i.e. that if function1 calls function2, that function2 can 
return both itself and function1? I have a helper function that might 
want to return to the calling function, or might want to return right 
back  to the shell. Of course I can do this with with return value tests 
within the calling function, but it would be nice if the helper function 
could handle it internally. Is it possible? 'exit' kills the shell 
itself, so it's too aggressive.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author