Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sh/bash incompatibility - noticeable with Netscape
- X-seq: zsh-users 777
- From: Chet Ramey <chet@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: sh/bash incompatibility - noticeable with Netscape
- Date: Wed, 2 Apr 1997 11:25:14 -0500
- Cc: schizo@xxxxxxxxxxxxxxx, chrisl@xxxxxxxxxxxx
- In-reply-to: Message from schizo@xxxxxxxxxxxxxxx of Tue, 01 Apr 1997 20:12:54 -0500 (id <199704020112.UAA27289@xxxxxxxxxxxxxxxxxxxxxxxx>)
- Read-receipt-to: chet@xxxxxxxxxxx
- Reply-to: chet@xxxxxxxxxxx
> > 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@xxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author