From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: schaefer@nbn.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: cshjunkieparen bothers me (and always has)
Date: Mon, 1 Jul 1996 23:02:11 +0200 (MET DST) [thread overview]
Message-ID: <199607012102.XAA09412@bolyai.cs.elte.hu> (raw)
In-Reply-To: <960701121913.ZM617@candle.brasslantern.com> from Bart Schaefer at "Jul 1, 96 12:19:11 pm"
> Here's a patch that does just that -- removes cshjunkieparen, leaving the
> associated syntax supported. This patch also includes, but comments out,
> the code to implement cshjunkietests.
>
> No man page patch here, as I'm offering this only for consideration at
> this point.
I approve this without cshjunkietests since it makes the code simpler. The
other reason is that the while list; { ... } syntax always worked.
Below is the documentation. I do not know much about nroff so if something
is wrong in it, tell me. I'll be away till thursday. Than I'll release
3.0-per2. I've already fixed most signal related bugs and made ulimit bash
compatible.
Zoltan
*** Doc/zshoptions.man 1996/06/26 08:58:31 2.12
--- Doc/zshoptions.man 1996/07/01 20:49:45
***************
*** 126,136 ****
"\fIlist\fP; \fBend\fP" instead of
"\fBdo\fP \fIlist\fP; \fBdone\fP".
.TP
- \fBCSH_JUNKIE_PAREN\fP
- Allow \fBfor\fP, \fBif\fP and \fBwhile\fP loops where the argument
- list is given in parentheses. Otherwise, the parentheses will be
- treated as specifying a subshell.
- .TP
\fBCSH_JUNKIE_QUOTES\fP
Complain if a quoted expression runs off the end of a line;
prevent quoted expressions from containing unescaped newlines.
--- 126,131 ----
*** Doc/zshmisc.man 1996/06/26 08:58:31 2.8
--- Doc/zshmisc.man 1996/07/01 20:48:30
***************
*** 250,257 ****
of \fIexp\fP.
.SH "ALTERNATE FORMS FOR COMPLEX COMMANDS"
.PP
! Many of zsh's complex commands have alternate forms. These forms
! require that the option \fBCSH_JUNKIE_PAREN\fP be set. These particular
versions of complex commands should be considered deprecated and may be
removed in the future. The versions in the previous section should be
preferred instead.
--- 250,256 ----
of \fIexp\fP.
.SH "ALTERNATE FORMS FOR COMPLEX COMMANDS"
.PP
! Many of zsh's complex commands have alternate forms. These particular
versions of complex commands should be considered deprecated and may be
removed in the future. The versions in the previous section should be
preferred instead.
***************
*** 259,269 ****
.RS
.PD 0
.TP
! \fBif\fP \fB(\fP \fIlist\fP \fB) {\fP
.TP
\fIlist\fP
.TP
! \fB} elif (\fP \fIlist\fP \fB) {\fP
.TP
\fIlist\fP
.TP
--- 258,272 ----
.RS
.PD 0
.TP
! \fBif\fP \fIlist\fP
! .TP
! \fB{\fP
.TP
\fIlist\fP
.TP
! \fB} elif \fIlist\fP
! .TP
! \fB{\fP
.TP
\fIlist\fP
.TP
***************
*** 273,286 ****
.TP
\fB}\fP
.PD
! An alternate form of \fBif\fP. The parentheses surrounding \fIlist\fP
! can be omitted if the only command in the list is a conditional expression
! of the form [[ exp ]].
.PP
.PD 0
.TP
! \fBif (\fP \fIlist\fP \fB)\fP \fIsublist\fP
! A shorter form of previous one.
.PD
.PP
.PD 0
--- 276,290 ----
.TP
\fB}\fP
.PD
! An alternate form of \fBif\fP.
.PP
.PD 0
.TP
! \fBif\fP \fIlist\fP
! .TP
! \fIsublist\fP
! A shorter form of previous one which only works in \fBNO_SHORT_LOOPS\fP
! is not set.
.PD
.PP
.PD 0
***************
*** 297,307 ****
.TP
\fBfor\fP \fIname\fP \fB(\fP \fIword\fP ... \fB) \fIsublist\fP
.PD
! A shorter form of the previous one.
.PP
.PD 0
.TP
! \fBwhile (\fP \fIlist\fP \fB) {\fP
.TP
\fIlist\fP
.TP
--- 301,314 ----
.TP
\fBfor\fP \fIname\fP \fB(\fP \fIword\fP ... \fB) \fIsublist\fP
.PD
! A shorter form of the previous one which only works in \fBNO_SHORT_LOOPS\fP
! is not set.
.PP
.PD 0
.TP
! \fBwhile\fP \fIlist\fP
! .TP
! \fB{\fP
.TP
\fIlist\fP
.TP
next prev parent reply other threads:[~1996-07-01 21:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-30 7:19 Bart Schaefer
1996-07-01 19:19 ` Bart Schaefer
1996-07-01 21:02 ` Zoltan Hidvegi [this message]
1996-07-01 21:35 ` Anthony Heading
1996-07-02 1:03 ` Bart Schaefer
1996-07-02 8:48 ` Peter Stephenson
1996-07-02 19:35 ` Bart Schaefer
1996-07-04 13:14 ` Zoltan Hidvegi
1996-07-04 15:58 ` Bart Schaefer
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=199607012102.XAA09412@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--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).