Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ho95e.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ho95e!wcs From: wcs@ho95e.UUCP (#Bill.Stewart.2G202.x0705) Newsgroups: net.unix Subject: Re: Cshell within make Message-ID: <428@ho95e.UUCP> Date: Sat, 18-Jan-86 00:22:27 EST Article-I.D.: ho95e.428 Posted: Sat Jan 18 00:22:27 1986 Date-Received: Sun, 19-Jan-86 03:59:04 EST References: <431@bcsaic.UUCP> <3160@sun.uucp> Reply-To: wcs@ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) Organization: AT&T Bell Labs, Holmdel NJ Lines: 29 > 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? It's fine for "make" to use the *Makefile author's* $SHELL if he/she wants to use it, but using $SHELL means it uses the shell of the *person making the software* If make always uses /bin/sh, then everyone can use it. If a given makefile specifies csh, then 2/3 of the UNIX systems out there can use it, but they can use it reliably. If the makefile uses $SHELL, then any of you who use /bin/sh can't make software written by a csh user, and csh users can't make software written by a /bin/sh user, even if they have both shells on there machine. I normally use ksh, but stick to the /bin/sh subset for programming. How many of you still have the "Adventure Shell" on your system that someone (Doug Gwyn or Guy Harris?) posted a few years ago? Will it work with make? :-) "A nasty little dwarf throws a stone knife into your mailbox!" n You are in small, seldom-used directory There is a makefile here There is a foo.c here attack foo.c with "make" -- # Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs