* WHitespace now required before ]] ?
@ 1997-01-28 8:45 Daniel Dignam
0 siblings, 0 replies; only message in thread
From: Daniel Dignam @ 1997-01-28 8:45 UTC (permalink / raw)
To: zsh-workers
Hi Folks,
I presume this is a change for the greate good, compatability with
other shells, but it now appears that ]] requries preceeding whitespace.
(Forgive me I'm on an old version, but it changes like this that keep me
here ;-) ):
alfep3:zsh_test 280> echo $VERSION
zsh 2.4.333 beta
alfep3:zsh_test 280> if [[ -f foo]]; then
> echo a
> fi
a
However in the new version
alfep3% echo $ZSH_VERSION
3.1.1
alfep3% if [[ -f foo]]; then
zsh: parse error near `then'
I don't suppose there is a compatability mode ?
--
Daniel Dignam,
mailto:daniel@edsug.com
Assemblies Development Phone: +44 1223-371591
EDS Unigraphics FAX: +44 1223-316931
http://www-sdl.ug.eds.com/ug_assemblies.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-01-28 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-28 8:45 WHitespace now required before ]] ? Daniel Dignam
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).