Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site nicmad.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!uwvax!astroatc!nicmad!luscher From: luscher@nicmad.UUCP Newsgroups: net.unix,net.lang.c Subject: Re: read the manual ; it didn't help, can you? Message-ID: <172@nicmad.UUCP> Date: Thu, 16-May-85 14:42:38 EDT Article-I.D.: nicmad.172 Posted: Thu May 16 14:42:38 1985 Date-Received: Fri, 17-May-85 06:10:25 EDT References: <219@ttidca.UUCP> Organization: Nicolet Instrument Corp. Madison WI Lines: 30 Xref: linus net.unix:3946 net.lang.c:4728 > Like flakes of dandruff, no 2 versions of the UNIX manual are alike. Let us > not berate someone for not reading what he does not have. I was trying to create my first shell script in file 'nic': echo print graph\? set ans = $< if ( $ans == 'y' ) then echo do something useful endif When I entered 'nic' to a (csh) prompt I read: print graph? nic: syntax error at line 3: `newline' unexpected Two days later, after reading some shell scripts acorss the nes (thanks everyone!) I managed to get the proper response by, (are you ready?) inserting a line at the top of file 'nic', which contained solely the character '#'. On our 4.2bsd system the command 'man csh' produces a manual which doesn't mention the '#' character. From the examples on the net I deduced that '# ' is a comment and '#! ' is a shell command request. Have I erred? What in the #$%& is going on??? Thanks for your help. -- Jim Luscher / Nicolet Instruments / Oscilloscope Div. 5225 Verona Rd Bldg-2 / Madison Wi 53711 USA / 608/271-3333x2274