Xref: utzoo comp.unix.wizards:21220 comp.unix.questions:20948 Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!rex!uflorida!novavax!hcx1!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Possible bug in C-Shell Keywords: csh, sh, here document, script Message-ID: <3441@hcx1.SSD.CSD.HARRIS.COM> Date: 26 Mar 90 20:59:58 GMT References: <3378@hcx1.SSD.CSD.HARRIS.COM> <254@mavrick.UUCP> Sender: news@hcx1.SSD.CSD.HARRIS.COM Organization: Harris Computer Systems, Fort Lauderdale, FL Lines: 22 Thanks to all who replied to my "big" in C-Shell problem. The problem, it turns out is just that csh is a bit lazy in its parsing and just goes to the first else it sees when the if-test fails (even if it's in a here document). The smallest such example I came up with is: if ( foo == bah ) then cat <