Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!timbuk!paul From: paul@sequoia.cray.com (Paul Dow (CRI-UK)) Newsgroups: comp.unix.wizards Subject: Re: csh pleasures Message-ID: <130224.22036@timbuk.cray.com> Date: 7 Feb 91 19:59:20 GMT References: <10880@pasteur.Berkeley.EDU> Reply-To: paul@sequoia.cray.com (Paul Dow (CRI-UK)) Organization: Cray Research, Inc. Lines: 24 |> Anybody care defending? |> |> #!/bin/csh -f |> set a=0 |> set b=1 |> if($a) then |> if($b) then |> echo one |> else |> echo two |> endif |> else |> echo three |> endif |> I'd like to know the background to this myself. Over the years, slight differences between shells have caused me many headaches. The above script will work "as expected" if a space is inserted between the i and the "("s. Some versions of csh will gripe if no space is provided. Paul Dow.