On Friday 10 December 2010 Greg Wooledge wrote:
> On Fri, Dec 10, 2010 at 03:23:46PM +0100, Diggory Hardy wrote:
> > What if bash were only to allow scripts to call themselves with exec?
>
> You can't prevent programmers from writing horrible code. At some point,
> it isn't worth the effort even to try.
>
No you can't.
To be frank sometimes I try to write nice code and sometimes I just try to hack
something to do what I want. The more bugs an interpreter or compiler can catch
the better though, particularly with regards to those who are not experts in a
language.