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: Mon, 29 Jul 2013 17:05:02 +0200

On 29 Jul 2013 17:00, "Roman Rakus" <rrakus@redhat.com> wrote:
>
> I didn't take a look on where the problem could be, but it is discussed
on stackoverflow [1].
>
> Looks like return builtin falsely exit execution of while loop instead of
function.

Unless I'm reading this wrongly, this seems like expected behaviour in a
subshell to me (although I think it should probably raise a syntax error
since return is out of context).

Chris


reply via email to

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