Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!accuvax.nwu.edu!tank!ux1.cso.uiuc.edu!iuvax!purdue!bu-cs!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: csh question Message-ID: <15849@bloom-beacon.MIT.EDU> Date: 13 Nov 89 09:59:00 GMT References: <1989Nov13.014412.24735@Neon.Stanford.EDU> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 22 In article <1989Nov13.014412.24735@Neon.Stanford.EDU> kamens@Neon.Stanford.EDU (Samuel N Kamens) writes: >I am trying to write a csh shell that looks like this (with names changed to >protect the innocent) > >... > >When I run it, I get an error (error: end of file unexpected). You need "#!/bin/csh -f" at the top. Since you don't have that, it is being interpreted as a bourne shell script, hence the error you received. >Sam Kamens | "How do you know she is a witch?" >kamens@neon.stanford.edu | "She looks like one!!" Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710 P.S. For those of you who are wondering, yes.