brad@SSD.CSD.HARRIS.COM (Brad Appleton) (03/27/90)
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 <<END
else echo wrong
END
else
echo right
end if
Now I have a question, can anyone out there come up with a plausible scenario
where I could take advantage of this "feature"? (sorry, just thinking out loud
again -- Ill stop now :-).
Thanx again for your replies!
-=-=-=-=-=-=-=-=-=-=-= "And miles to go before I sleep." =-=-=-=-=-=-=-=-=-=-=-
Brad Appleton Harris Computer Systems brad@ssd.csd.harris.com
(305) 973-5007 Fort Lauderdale, FL USA {uunet,novavax}!hcx1!brad
-=-=-=-=-=-=-=-=-=-= Disclaimer: I said it, not my company! -=-=-=-=-=-=-=-=-=-