On 12/27/18 6:38 PM, enh wrote:
> On Thu, Dec 27, 2018 at 12:14 PM Rob Landley <[email protected]> wrote:
>> If we're not in a loop, continue should throw an error, then fall through to 
>> the
>> exit. (That's what it does here...) You don't want to exit out of a loop 
>> because
>> the loop will stop, but continue's a noisy NOP if you're not in a loop...
>>
>> Did bash grow a bug where redirecting stderr of continue breaks?
> 
> no, it seems to be what i suggested before: bash doesn't believe it's
> in a loop, presumably because of the intervening function.

Possibly the continue should be a return now?

> the error
> is `continue: only meaningful in a 'for', 'while', or 'until' loop`.
> (there are 'until' loops?)

I have no idea, but should probably look it up for toysh.

Rob
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to