A shell by any other name...

Allyn Fratkin allyn at sdcsvax.UUCP
Sun Sep 16 14:53:45 AEST 1984


In article <754 at aplvax.UUCP>, ded at aplvax.UUCP 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");
}
-- 
>From the virtual mind of Allyn Fratkin           sdcsvax!allyn at 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."



More information about the Comp.unix.wizards mailing list