[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in syntax checking causes unintended running of a function
From: |
Chet Ramey |
Subject: |
Re: Bug in syntax checking causes unintended running of a function |
Date: |
Tue, 19 Apr 2016 08:40:09 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
On 4/19/16 7:45 AM, 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.
There are no `function contents'. There is no function. There was a
syntax error while parsing the compound command that is the function
body, which results in the error recovery behavior you observed.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Bug in syntax checking causes unintended running of a function, David Maas, 2016/04/18
- Re: Bug in syntax checking causes unintended running of a function, konsolebox, 2016/04/18
- Bug in syntax checking causes unintended running of a function, David Maas, 2016/04/19
- Re: Bug in syntax checking causes unintended running of a function,
Chet Ramey <=
- Re: Bug in syntax checking causes unintended running of a function, konsolebox, 2016/04/20
- Re: Bug in syntax checking causes unintended running of a function, David Maas, 2016/04/20
- Re: Bug in syntax checking causes unintended running of a function, Greg Wooledge, 2016/04/20
- Re: Bug in syntax checking causes unintended running of a function, David Maas, 2016/04/20
- Re: Bug in syntax checking causes unintended running of a function, David Maas, 2016/04/20
- Re: Bug in syntax checking causes unintended running of a function, Chet Ramey, 2016/04/20
Re: Bug in syntax checking causes unintended running of a function, Chet Ramey, 2016/04/19
RE: Bug in syntax checking causes unintended running of a function, dnade.ext, 2016/04/21