Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ritcv.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!bullwinkle!rochester!ritcv!mjl From: mjl@ritcv.UUCP (Mike Lutz) Newsgroups: net.unix Subject: Re: Cshell within make Message-ID: <9259@ritcv.UUCP> Date: Fri, 17-Jan-86 16:29:04 EST Article-I.D.: ritcv.9259 Posted: Fri Jan 17 16:29:04 1986 Date-Received: Mon, 20-Jan-86 04:39:34 EST References: <431@bcsaic.UUCP> Reply-To: mjl@ritcv.UUCP (Michael Lutz) Organization: Rochester Institute of Technology, Rochester, NY Lines: 23 In article <431@bcsaic.UUCP> michaelm@bcsaic.UUCP (michael b maxwell) writes: > >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? Well, we had "make" look at the SHELL environment variable, and it is a mixed blessing at best. The basic problem is that "shell independent" makefiles are difficult to write once you get beyond the simplest commands. If programmer "C", who uses CSH, writes a makefile, little things like ">&" will creep in to the commands. When programmer "B", a Bourne shell user, trys to use the makefile, all hell breaks lose. So I advocate strict adherence to BSH -- if you really need CSH, invoke it explicitly (and realize that you may have just destroyed the portability of your makefile). Mike Lutz -- Mike Lutz Rochester Institute of Technology, Rochester NY UUCP: {allegra,seismo}!rochester!ritcv!mjl CSNET: mjl%rit@csnet-relay.ARPA