Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ as token
- X-seq: zsh-workers 1831
- From: Wayne Davison <wayne@xxxxxxxxx>
- To: Achim Braemer <braemer@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [[ as token
- Date: Mon, 29 Jul 1996 17:36:23 -0700
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: braemer's message of Mon, 29 Jul 1996 23:40:26 +0200. <9607292140.AA29001@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author