Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!uw-beaver!tektronix!orca!tekecs!frip!andrew From: andrew@frip.gwd.tek.com (Andrew Klossner) Newsgroups: comp.unix.wizards Subject: Re: Make & .cshrc Message-ID: <10357@tekecs.TEK.COM> Date: 13 Sep 88 03:47:34 GMT References: <452@alice.marlow.uucp> Sender: andrew@tekecs.TEK.COM Organization: Tektronix, Wilsonville, Oregon Lines: 32 > I have a problem with make and the c-shell. My login shell is the > cshell and here is a copy of my .cshrc: > ... > alias cd cd \!\* \; set prompt = '\[33m\[1m\($USER@sleepy\)`pwd`$DEPTH\ \[32m' > ... > On my Uport V.3, if you create the following makefile > > fred: > cd .. ; date > > and type 'make fred', you get the the date as expected, but you > also get an extra prompt. This is one of those well-known but undocumented csh problems. The solution is, in your .cshrc, put the "alias cd" and any setting of $prompt under if ($?prompt) then alias cd ... set prompt=... endif Csh only sets $prompt for an interactive shell. It's also a good idea to put other interactive-only work, like running tset or setting EDITOR, here, to speed up csh script processing (assuming you don't instead put it in .login). Although I'm a rabid csh user, it's my personal opinion that a "make" that doesn't always use /bin/sh (apparently this one depends on $SHELL) is broken. -=- Andrew Klossner (decvax!tektronix!tekecs!andrew) [UUCP] (andrew%tekecs.tek.com@relay.cs.net) [ARPA]