[comp.unix.shell] Embedded if/endif in while/end doesn't work in csh

jin@spdcc.COM (Jerry Natowitz) (10/24/90)

I have been going crazy with what is either a bug, or an undocumented
feature of csh.  I can not embedd an if/endif with a while/end
(or foreach/end) or vice-versa.  It seems as if csh is interpreting
the endif as an end (or vice-versa).

I vaguely recall some discussion of having to use two end statements
in some csh context, is this related?

BTW: I have demonstrated this both on Epoch running BSD 4.3 and on
SunOS 4.0.3
-- 
     Jerry Natowitz
     Guest user on:
ARPA jin@ursa-major.spdcc.com
UUCP {ima,harvard,rayssd,linus,m2c}!spdcc!jin