zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: cshjunkieparen bothers me (and always has)
Date: Tue, 02 Jul 1996 10:48:12 +0200	[thread overview]
Message-ID: <199607020848.KAA17173@hydra.ifh.de> (raw)
In-Reply-To: "schaefer@candle.brasslantern.com"'s message of "Mon, 01 Jul 1996 12:19:11 MET." <960701121913.ZM617@candle.brasslantern.com>

schaefer@candle.brasslantern.com wrote:
> } I'm having a really hard time figuring out why zsh can't simply support the
> } `if ( ... ) { ... }' and `if [[ ... ]] { ... }' syntax all the time, and
> } always have `( ... )' mean a subshell even with that syntax; and then get
> } rid of the cshjunkieparen option.
> 
> Here's a patch that does just that -- removes cshjunkieparen, leaving the
> associated syntax supported.

I have a vague feeling there were things which later got moved to
CSH_JUNKIE_PAREN because they caused some problem with some strange sh
syntax.  However, the patch looks fairly clean and I can't see how any
valid sh syntax would fail.  Maybe the expedient of treating (..) and
{..} the usual way has fixed things up.  If I was more energetic I
would look back in the list archive.

> } If we really wanted a cshjunkieparen that meant something useful, it would
> } mean that the parens were interpreted as [[ ... ]] like so:
> } 
> } 	if ( $TERM == xterm ) then
> } 	    ...
> } 	fi

I've got lost along the way somewhere.  I thought CSH_JUNKIE_PAREN
(which I originally wrote some time ago) was once supposed to do that?
Otherwise what was the big deal?  If zsh has never treated the
parentheses as a test, why was it advertised as a csh-compatibility
feature?  If it did, why was it taken out?

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



  parent reply	other threads:[~1996-07-02  8:58 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
1996-07-01 21:35     ` Anthony Heading
1996-07-02  1:03       ` Bart Schaefer
1996-07-02  8:48   ` Peter Stephenson [this message]
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=199607020848.KAA17173@hydra.ifh.de \
    --to=pws@ifh.de \
    --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).