Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!sharkey!rjf001!amara!mcdaniel From: mcdaniel@amara.uucp (Tim McDaniel) Newsgroups: comp.unix.questions Subject: # not honored? Message-ID: Date: 28 Mar 90 19:37:21 GMT Sender: news@amara.UUCP Organization: Applied Dynamics Int'l. Lines: 32 I'm using "Sun OS 4.0.3" on a Sun 3. Given the two scripts 25.sh: ./25.csh 25.csh: # if (1 == 1) then echo Hi else echo Impossible endif Executing "./25.sh" gives the Bourne shell error message ./25.csh: syntax error at line 7: `end of file' unexpected There's an easy workaround: make the first line of a C-shell script #! /bin/csh -f But I had thought that "#" as the first byte of a file meant "this is a C shell script" (unless, of course, the first two bytes are "#!"). It appears that the Bourne shell does not respect this rule. Should it? (On systems where the C shell exists and uses this convention.) -- Tim McDaniel Applied Dynamics International, Ann Arbor, MI Internet: mcdaniel%amara.uucp@mailgw.cc.umich.edu UUCP: {uunet,sharkey}!amara!mcdaniel