From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Matt Liggett <mliggett@pobox.com>, zsh-workers@math.gatech.edu
Subject: Re: bug in 3.0.0?
Date: Wed, 21 Aug 1996 12:14:37 -0700 [thread overview]
Message-ID: <960821121437.ZM11481@candle.brasslantern.com> (raw)
In-Reply-To: Matt Liggett <mliggett@pobox.com> "bug in 3.0.0?" (Aug 21, 12:39pm)
On Aug 21, 12:39pm, Matt Liggett wrote:
- Subject: bug in 3.0.0?
-
- if [[ -z $MAIL ]] {
- if [[ $OSTYPE = (ultrix4|osf)* ]] {
- export MAIL=/usr/spool/mail/$USER
- } elif [[ $OSTYPE = hpux9* ]] {
- export MAIL=/usr/mail/$USER
- } elif [[ $OSTYPE = solaris2* ]] {
- export MAIL=/var/mail/$USER
- } elif [[ $OSTYPE = sunos4* ]] {
- export MAIL=/usr/spool/mail/$USER
- } else {
- echo 'WARNING: $MAIL' "not set for $OSTYPE."
- }
- }
The problem is with "else { ... }". 3.0 wants a "fi" at the end of the
if/elif/else chain, even when using the { ... } form -- but only when
it ends with "else { ... }".
This seems to fix it.
*** Src/parse.c.0 Wed Aug 14 09:43:09 1996
--- Src/parse.c Wed Aug 21 12:12:50 1996
***************
*** 676,685 ****
cmdpush(CS_ELSE);
while (tok == SEPER)
yylex();
! l = par_list();
! if (tok != FI) {
! cmdpop();
! YYERRORV;
}
addlinknode(thensl, l);
nt++;
--- 676,694 ----
cmdpush(CS_ELSE);
while (tok == SEPER)
yylex();
! if (tok == INBRACE) {
! yylex();
! l = par_list();
! if (tok != OUTBRACE) {
! cmdpop();
! YYERRORV;
! }
! } else {
! l = par_list();
! if (tok != FI) {
! cmdpop();
! YYERRORV;
! }
}
addlinknode(thensl, l);
nt++;
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
next prev parent reply other threads:[~1996-08-22 3:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-21 16:39 Matt Liggett
1996-08-21 19:14 ` Bart Schaefer [this message]
1996-08-22 21:10 ` Zoltan Hidvegi
1996-08-22 23:35 ` Semantics of compctl -X Greg J. Badros
1996-08-23 17:57 ` Zoltan Hidvegi
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=960821121437.ZM11481@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=mliggett@pobox.com \
--cc=schaefer@nbn.com \
--cc=zsh-workers@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).