bug-bash
[Top][All Lists]
Advanced

[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.

Attachment: pgp3zgCCunq2s.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]