[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in function return statement in while subshell
From: |
Chris Down |
Subject: |
Re: Bug in function return statement in while subshell |
Date: |
Tue, 30 Jul 2013 16:30:38 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On 2013-07-30 10:18, Greg Wooledge wrote:
> After the fork() which creates the subshell, each of the two processes
> (parent and child) is still within its own instance of the function.
> The "return" command executed in the child causes the child's function
> to terminate, but this does not cause the parent's function to terminate.
I think we all understand the technical reasons *why* this occurs, that has
seemed clear since the beginning. My concern is that I think it is semantically
wrong to act as if we are still in a function when in a child, and accept a
return statement there.
pgpNbbZUCUOTT.pgp
Description: PGP signature
- Re: Bug in function return statement in while subshell, (continued)
- Re: Bug in function return statement in while subshell, Pierre Gaston, 2013/07/30
- Re: Bug in function return statement in while subshell, Chris Down, 2013/07/30
- Re: Bug in function return statement in while subshell, Pierre Gaston, 2013/07/30
- Re: Bug in function return statement in while subshell, Chris Down, 2013/07/30
- Re: Bug in function return statement in while subshell, Pierre Gaston, 2013/07/30
- Re: Bug in function return statement in while subshell, Chris Down, 2013/07/30
- Re: Bug in function return statement in while subshell, Greg Wooledge, 2013/07/30
- Re: Bug in function return statement in while subshell, Chet Ramey, 2013/07/30
- Re: Bug in function return statement in while subshell, Roman Rakus, 2013/07/30
- Re: Bug in function return statement in while subshell, Greg Wooledge, 2013/07/30
- Re: Bug in function return statement in while subshell,
Chris Down <=
- Re: Bug in function return statement in while subshell, Chet Ramey, 2013/07/30