[1747] in Athena Bugs

home help back first fref pref prev next nref lref last post

tcsh error in processing logical AND

daemon@ATHENA.MIT.EDU (geer@ATHENA.MIT.EDU)
Tue Feb 7 21:49:41 1989

From: <geer@ATHENA.MIT.EDU>
Date: Tue, 7 Feb 89 21:49:26 EST
To: bugs@ATHENA.MIT.EDU
i find that the tcsh does not follow
the syntax of C when the && operator
is present; specifically it evaluates
both its operands thereby failing to 
stop if the first operand evaluates to
zero.

tytso> You're quite correct; for some reason && is always evaluating
tytso> the second argument; the whole csh parser is really broken in a
tytso> lot of ways; this is just one of them.
tytso> 
tytso> Bostic said that he was planning on freeing the csh; hopefully
tytso> in the process, the parser/expression evaluator will get rewritten
tytso> from scratch.  It definitely could use being rewritten.

--dan

home help back first fref pref prev next nref lref last post