Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[[ as token



While not beeing active on the developement myself, and not knowing
about the intricacies of implementation, I do have a pretty strong
oppinion about the decision taken so abruptly in 3.0-pre4 to treat `[['
as a token that has to be surrounded by IFS.

The change broke some of my scripts that were using (maybe erroneously)
constructs like `if [[-x zsh ]]; then'. I am quite sure I happens to a
_lot_ of people. So I think the change will not be popular among
just-users like myself, especially since there is just no syntactic
reason why `[[' has to be surrounded by IFS.

So if this change is to be made there should be the possibility to
switch it off with an option. 

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, and scripts
should be enforced to be valid also under ksh or sh.

I am quite concerned that acceptance for the new release will be low if
it crashes very many existing scripts, whatever the good reason may be.
After all, we chose zsh because it is just so much _smarter_ than all
other shells...

-- Achim --


------------------------------------------------------------------------
 Achim Braemer              braemer@xxxxxxxxxxxxxxxxxxxxxxxxxxx
 Physikalisches Institut    http://doc.physi.uni-heidelberg.de/~braemer
 Philosophenweg 12          Telephone: 06221 / 549370  Fax: 475733
 D-69120 Heidelberg         From DESY dial direct 6-207-9370
------------------------------------------------------------------------



Messages sorted by: Reverse Date, Date, Thread, Author