Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site bcsaic.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!lll-crg!qantel!hplabs!tektronix!uw-beaver!ssc-vax!bcsaic!michaelm From: michaelm@bcsaic.UUCP (michael b maxwell) Newsgroups: net.unix Subject: Cshell within make Message-ID: <431@bcsaic.UUCP> Date: Tue, 14-Jan-86 13:46:02 EST Article-I.D.: bcsaic.431 Posted: Tue Jan 14 13:46:02 1986 Date-Received: Fri, 17-Jan-86 06:35:18 EST Organization: Boeing Computer Services AI Center, Seattle Lines: 23 Thanks to all who pointed out to me that the reason "make" refused to use cshell in script files it called is that the first line of the script file should read: #!/bin/csh --I had used: #/bin/csh incorrect!! Strange, I couldn't find this in the documentation I have, although I probably didn't look far enough. Indeed, the documentation seemed to imply that *any* comment starting at the first character of a file would cause the script file to be run in csh, surely a strange practice... And #/bin/csh worked everywhere that I tried it, until I tried make. (Leaving it out would result in the same file being run by sh.) Why is make different? A few observed that "make" should look at the SHELL variable. It doesn't on our system (BSD 4.2), and a note today in news from Matthew P Wiener (of the Math Dept at UCB) says that the line in "make" that checks SHELL is usually commented out in the BSD version. Anybody know why? -- Mike Maxwell Boeing Artificial Intelligence Center ...uw-beaver!uw-june!bcsaic!michaelm