bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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))

address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]