On 29 Jul 2013 17:00, "Roman Rakus" <rra...@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