Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdcsvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!sdcsvax!allyn From: allyn@sdcsvax.UUCP (Allyn Fratkin) Newsgroups: net.unix-wizards Subject: Re: A shell by any other name... Message-ID: <46@sdcsvax.UUCP> Date: Sun, 16-Sep-84 01:17:43 EDT Article-I.D.: sdcsvax.46 Posted: Sun Sep 16 01:17:43 1984 Date-Received: Fri, 14-Sep-84 05:41:33 EDT References: <754@aplvax.UUCP> Organization: U.C. San Diego Lines: 20 In article <754@aplvax.UUCP>, ded@aplvax.UUCP (Don Davis) writes: > Occasionally I like to use the Bourne shell interactively. > On these occasions I would like the sh to read ".profile" > > Is there any way to accomplish the above other than > by using the Bourne shell as my login shell? Yes. Try this program (and call it "sh" if you wish!): main() { execl("/bin/sh","-sh",0); } -- From the virtual mind of Allyn Fratkin sdcsvax!allyn@Nosc UCSD Pascal Project {ucbvax, decvax, ihnp4} U.C. San Diego !sdcsvax!allyn "Generally you don't see that kind of behavior in a major appliance."