From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 458 invoked from network); 2 Apr 1997 16:35:43 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 2 Apr 1997 16:35:43 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA23805; Wed, 2 Apr 1997 11:26:26 -0500 (EST) Resent-Date: Wed, 2 Apr 1997 11:25:10 -0500 (EST) Date: Wed, 2 Apr 1997 11:25:14 -0500 From: Chet Ramey To: zsh-users@math.gatech.edu Subject: Re: sh/bash incompatibility - noticeable with Netscape Cc: schizo@simons-rock.edu, chrisl@cybercom.net Reply-To: chet@po.CWRU.Edu In-Reply-To: Message from schizo@simons-rock.edu of Tue, 01 Apr 1997 20:12:54 -0500 (id <199704020112.UAA27289@betrayer.simons-rock.edu>) Message-ID: <9704021625.AA14770.SM@odin.INS.CWRU.Edu> Read-Receipt-To: chet@po.CWRU.Edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"vuMHp3.0.wo5.cXeGp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/777 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > > This line runs fine with bash, but zsh parses the leading (( as an > > arithmetic expression opening, and fails. There is no way I can figure > > out to convince Netscape to put a space between the two leading > > open-parens. > > This only works with bash 1.x. bash 2.0 will properly choke in the same way > as zsh. ...and yet bash-2.01 will have a fix. I fixed the bash parsing code so that it requires an arithmetic command to begin with `((', end with `))', and have an equal number of open and close parens. If it does not end with `))', it is treated as a nested subshell. A non- balancing number of open and close parens is treated as a syntax error. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu