Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Incompatibility in zsh-3.0-pre3 ?
- X-seq: zsh-users 295
- From: Peter Stephenson <pws@xxxxxx>
- To: jarausch@xxxxxxxxxxxxxxxxxxx (Helmut Jarausch)
- Subject: Re: Incompatibility in zsh-3.0-pre3 ?
- Date: Mon, 15 Jul 1996 10:42:54 +0200
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: "jarausch@xxxxxxxxxxxxxxxxxxx"'s message of "Mon, 15 Jul 1996 10:06:47 MET." <199607150806.KAA19901@xxxxxxxxxxxxxxxxxxx>
jarausch@xxxxxxxxxxxxxxxxxxx wrote:
>
> Previous version of ZSH (seem to) admit the syntax
>
> function cp(){
> gcp -ip $@}
>
> Now this is reported as error.
> Changing it to
>
> function cp(){
> gcp -ip $@
> }
>
> is OK. Is this a buglet in zsh-3.0-pre3 or a feature?
(In Zoltan's absence:) It's not a bug, and unfortunately I think it's
going to happen a lot --- I've just had a similar experience with the
standard start-up scripts here. This is due to the change that {, },
and [[ are treated as `reserved words' --- which basically means they
have to appear separately on the command line. This is for
compatibility (repeat mantra 57 times :-/).
The only good side is that at least your scripts will be more
POSIX-like, even if they are zsh-specific :-/.
--
Peter Stephenson <pws@xxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author