Article View: comp.unix.shell
Article #1605Embedded if/endif in while/end doesn't work in csh
From: Jerry Natowitz
Date: Wed, 24 Oct 1990 13:23
Date: Wed, 24 Oct 1990 13:23
15 lines
951 bytes
951 bytes
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
Technical Details
Message-ID:
<4623@spdcc.SPDCC.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!nih-csl!lhc!adm!cmcl2!yale!mintaka!spdcc!jinShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!nih-csl!lhc!adm!cmcl2!yale!mintaka!spdcc!jin From: jin@spdcc.COM (Jerry Natowitz) Newsgroups: comp.unix.shell Subject: Embedded if/endif in while/end doesn't work in csh Message-ID: <4623@spdcc.SPDCC.COM> Date: 24 Oct 90 13:23:15 GMT Reply-To: jin@ursa-major.spdcc.com (Jerry Natowitz) Organization: S.P. Dyer Computer Consulting, Cambridge MA Lines: 15