zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayne@clari.net>
To: Achim Braemer <braemer@doc.physi.uni-heidelberg.de>
Cc: zsh-workers@math.gatech.edu
Subject: Re: [[ as token
Date: Mon, 29 Jul 1996 17:36:23 -0700	[thread overview]
Message-ID: <199607300036.RAA06339@bebop.clari.net> (raw)
In-Reply-To: braemer's message of Mon, 29 Jul 1996 23:40:26 +0200. <9607292140.AA29001@doc.physi.uni-heidelberg.de>

Achim Braemer writes:
> This would be a good idea anyway, because when zsh is invoked as ksh or
> sh, parsing should be as close to these shells as possible

Here's what I get running the ksh that came with Solaris 2.5 for x86:

$ if [[-x /usr/local/bin/zsh]]; then echo hi; fi
ksh: [[-x:  not found
$ if [[ -x /usr/local/bin/zsh]]; then echo hi; fi
ksh: syntax error: `;' unexpected
$ if [[ -x /usr/local/bin/zsh ]]; then echo hi; fi
hi

So it looks like we're now much more compatible with ksh and sh (sh treats
"[[-x" the same way, though of course it doesn't parse "[[" by itself).

I think this is a positive step, but then I don't have any scripts that
broke because of this.  We can only guess what the collective response
to this will be.

..wayne..


  reply	other threads:[~1996-07-30  4:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-29 21:40 Achim Braemer
1996-07-30  0:36 ` Wayne Davison [this message]
1996-07-30  1:22 ` Achim Braemer

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=199607300036.RAA06339@bebop.clari.net \
    --to=wayne@clari.net \
    --cc=braemer@doc.physi.uni-heidelberg.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).