bug-bash
[Top][All Lists]
Advanced

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

Re: break no longer breaks out of loops defined in an outer context (was


From: Stephane Chazelas
Subject: Re: break no longer breaks out of loops defined in an outer context (was: Bug????)
Date: Tue, 28 Feb 2017 20:10:56 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

2017-02-28 19:43:11 +0100, tarot:
> Grrrrr! it is not a bug!!!!!!!
> 
> 
> xx. Fixed a bug that could allow `break' or `continue' executed from shell
>     functions to affect loops running outside of the function.
> 
> My BIG script doesn't work with bash-4.4
> 

There was a related discussion on the Austin group mailing list
back in May last year:

http://permalink.gmane.org/gmane.comp.standards.posix.austin.general/12614

Just my personal opinion, but I think I'd rather the spec had
been updated to accomodate the bash (and many other shells)
behaviour rather than bash breaking its backward compatibility
to comply to a requirement that is not particularly useful
myself.

You'll find more at that thread, though with the gmane web
interface not fully back up, it's hard to get the whole thread
(you can increase that 12614 number above).

-- 
Stephane




reply via email to

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