[comp.unix.aux] csh if/endif mismatch

weier@twolf4.CE.YALE.EDU (Richard Weier) (03/29/91)

Here is csh code segment which works fine on our DECstation and SUN4 but fails under AUX 2.0.    The reported error is that there is an if/else/endif mismatch.  Removing the rm command fixes the problem.  I would think this is a csh bug.  Or am I missing the obvious?

if $test !=1 then
  .
  .
  rm *.[yl]
  .
  .
else
  .
  .
endif


Richard Weier
weier@twolf.ce.yale.edu