Path: utzoo!attcan!uunet!samsung!munnari.oz.au!metro!foetus.syd.sgi.oz.au!peterk From: peterk@foetus.syd.sgi.oz.au (Peter Kerney) Newsgroups: comp.sys.sgi Subject: Re: Using 'csh' in Makefiles Message-ID: <1990Oct15.000128.6523@foetus.syd.sgi.oz.au> Date: 15 Oct 90 00:01:28 GMT References: <9010102030.AA23475@mcirps2.med.nyu.edu> Organization: Silicon Graphics, Sydney, Australia. Lines: 23 From article <9010102030.AA23475@mcirps2.med.nyu.edu>, by karron@MCIRPS2.MED.NYU.EDU: > > make takes each action line as a separate shell exec. The way > around that is to use a backslash (\) to escape each newline. Then > make will run the entire bunch of lines as one line. > To change the default shell command, equate SHELL=/bin/csh in the > makefile. > This will not work. I have tried it. The problem is that 'csh' relies on the fact that all the constructs are on separate lines. eg: foreach i (*) echo $i end This will not work in a Makefile, even with '\' at the end of the line. -- Peter Kerney. Silicon Graphics, Sydney, Australia. (peterk@syd.sgi.oz.au) If you can't have an IRIS at home, have the next best thing, an Amiga !!!