Re: Bug in syntax checking causes unintended running of a function
From:
Greg Wooledge
Subject:
Re: Bug in syntax checking causes unintended running of a function
Date:
Tue, 19 Apr 2016 10:52:30 -0400
User-agent:
Mutt/1.4.2.3i
On Tue, Apr 19, 2016 at 07:45:27AM -0700, David Maas wrote:
> Running the echo and other contents of the function really doesn't seem
> like the correct behavior. If the function isn't called, then its contents
> shouldn't be executed.
I believe the theory is the syntax error is confusing the parser to the
point where it can't even tell that it's supposed to be in a function
definition. So it starts reading and executing lines of code.