Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!fortune!rpw3 From: rpw3@fortune.UUCP Newsgroups: net.unix-wizards Subject: Re: Problems with: Activation of Csh fro - (nf) Message-ID: <3052@fortune.UUCP> Date: Thu, 12-Apr-84 23:07:39 EST Article-I.D.: fortune.3052 Posted: Thu Apr 12 23:07:39 1984 Date-Received: Fri, 13-Apr-84 21:15:23 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 25 #R:reed:-50600:fortune:11600087:000:657 fortune!rpw3 Apr 12 19:05:00 1984 Quick hack for your problem (I don't know if this is the "approved" method, but it has worked for me): # ln /bin/csh /bin/-csh Then in your shell script, ...<> ...<> exec -csh The shells (both sh and csh) look at the first character of "arg#0", which login sets especially to "-" for a "login shell". If you are exec'ing it from a "C" program, no need to do the linking hack. Just make sure that you fix up "argv[0][1]" to be a "-". Rob Warnock UUCP: {ihnp4,ucbvax!amd70,hpda,harpo,sri-unix,allegra}!fortune!rpw3 DDD: (415)595-8444 USPS: Fortune Systems Corp, 101 Twin Dolphin Drive, Redwood City, CA 94065