Re: bash2 can't parse function definitions inside if statements
From:
Jehsom
Subject:
Re: bash2 can't parse function definitions inside if statements
Date:
14 Nov 2000 15:12:33 GMT
User-agent:
tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.17 (i686))
clgonsal@kami.com wrote:
> function greet () { echo hello "$*" }
> function greet () { echo goodbye "$*" }
It says clearly in the COMPAT file included with bash-2.04 that a set
of commands in braces now require a semicolon and/or newline before the
closing brace. It was actually incorrect that bash1 accepted the incor-
rect syntax.
Moshe
--
jehsom@ angband.org cc.gatech.edu polter.net shaftnet.org nullity.dhs.org
wreck.org bellsouth.net resnet.gatech.edu burdell.org yo.dhs.org gooning.org
usa.net togetherweb.com spoonless.net; gte741e mj116 @prism.gatech.edu;
jacobsonconsulting@ usa.net; ICQ 1900670