luscher@nicmad.UUCP (05/16/85)
> 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