On Saturday, September 27, 2014 8:19:49 AM UTC+2, Eric Blake wrote:
>
> I am also in favor of both approaches - moving shell functions into a
> non-colliding namespace (so that arbitrary contents of regular variables
> CANNOT trigger parser bugs) and making shell function exports
> configurable and off by default.
On that second point: an even lower-hanging fruit is "off by default when
invoked as sh". Regardless of bash's evolution, let's stop jeopardizing the
very life of the overwhelming mass of #!/bin/sh scripts. Please.
-Alex
PS: Dunno whether CGI will ever recover from this week's blow. The sh-bash
confusion is the real murderer of that innocent victim.