bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: return from function doesn't work when used in tail of pipeline


From: Marc Herbert
Subject: Re: return from function doesn't work when used in tail of pipeline
Date: Thu, 19 Aug 2010 14:16:27 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1

>>>> A return that's run in a subshell doesn't cause the parent shell to
>>>> return.

       **SNIP**

>> Are there many people actually using
>> "return" to exit a subshell? That would not really make code easy to
>> read.



> You misunderstood, or I was unclear. 

*You* misunderstood, or I was unclear :-)

There was NO relation between the parts before and after the *SNIP*. I
had moved on to a suggestion to forbid "return" in subshells to prevent
any confusion, and was asking about any backward compatibility issue.





reply via email to

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