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!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!uwvax!astroatc!nicmad!luscher From: luscher@nicmad.UUCP Newsgroups: net.bugs.4bsd Subject: read the manual and it didn't help, can you? Message-ID: <179@nicmad.UUCP> Date: Fri, 17-May-85 10:36:44 EDT Article-I.D.: nicmad.179 Posted: Fri May 17 10:36:44 1985 Date-Received: Sun, 19-May-85 00:28:52 EDT References: <2157@sun.uucp> <659@mcvax.UUCP> Distribution: net Organization: Nicolet Instrument Corp. Madison WI Lines: 40 > 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 crossing the net (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. > man pages posted recently by Guy Harris one might remark that, contrary to > what is stated for creat(2): "Creat will fail and the file will not be created > or truncated if one of the following occur: ...", creat will in fact create > (but not truncate) a file when the EMFILE (too many open files) error is > returned. > > (This is on BSD4.2 and was noticed by ab@unido while playing around with hack.) *** REPLACE THIS LINE WITH YOUR MESSAGE *** -- Jim Luscher / Nicolet Instruments / Oscilloscope Div. 5225 Verona Rd Bldg-2 / Madison Wi 53711 USA / 608/271-3333x2274