Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: Yet even MORE Csh Quirks Message-ID: <5044@umcp-cs.UUCP> Date: Sat, 20-Apr-85 01:44:10 EST Article-I.D.: umcp-cs.5044 Posted: Sat Apr 20 01:44:10 1985 Date-Received: Mon, 22-Apr-85 06:45:36 EST References: <10032@brl-tgr.ARPA> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 27 You have run into the C Shell's "parser": ifs inside false ifs must have whitespace after the word "if"; elsewhere, ifs may be separated from their arguments by parentheses. Thus if (anything_false) foo if(anything) bar endif echo oops endif fails, while if (anything_false) foo if (anything) bar endif echo oops endif succeeds. The only difference is a single space. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland