zsh-users
 help / color / mirror / code / Atom feed
From: Chet Ramey <chet@odin.INS.CWRU.Edu>
To: zsh-users@math.gatech.edu
Cc: schizo@simons-rock.edu, chrisl@cybercom.net
Subject: Re: sh/bash incompatibility - noticeable with Netscape
Date: Wed, 2 Apr 1997 11:25:14 -0500	[thread overview]
Message-ID: <9704021625.AA14770.SM@odin.INS.CWRU.Edu> (raw)
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>)

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


      reply	other threads:[~1997-04-02 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-02  0:56 Chris Laas
1997-04-02  1:12 ` Clint Adams
1997-04-02 16:25   ` Chet Ramey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9704021625.AA14770.SM@odin.INS.CWRU.Edu \
    --to=chet@odin.ins.cwru.edu \
    --cc=chet@po.CWRU.Edu \
    --cc=chrisl@cybercom.net \
    --cc=schizo@simons-rock.edu \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).