Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!ns-mx!iowasp.physics.uiowa.edu!ceres.physics.uiowa.edu!news.iastate.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.wizards Subject: Re: csh pleasures Message-ID: <1991Feb7.184051.8939@mp.cs.niu.edu> Date: 7 Feb 91 18:40:51 GMT References: <10880@pasteur.Berkeley.EDU> Organization: Northern Illinois University Lines: 18 In article <10880@pasteur.Berkeley.EDU> tve@sprite.berkeley.edu (Thorsten von Eicken) writes: >Question: what does the following c-shell script print out? >Anybody care defending? > > #!/bin/csh -f > set a=0 > set b=1 > if($a) then >... csh is rather fussy when it parses its input. Try: if ( $a ) then In particular, "if(" is well known to cause problems. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940