Path: utzoo!attcan!telly!lethe!geac!becker!hybrid!scifi!bywater!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: setting variable on Bourne-shell startup Keywords: shell variable Message-ID: <1990Sep11.130034.12194@virtech.uucp> Date: 11 Sep 90 13:00:34 GMT References: Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Distribution: usa Organization: Virtual Technologies Inc., Sterling VA Lines: 24 In article dblack@pilot.njin.net (David Alan Black) writes: >Based on what I've read in TFM, I've tried to use ".profile" to create >and export an EDITOR variable (namely, vi - my main purpose here is to >circumvent emacs). Yes, putting it in .profile is the way to do it. However, .profile is only read at the startup point for a "LOGIN" shell. It is not read when you run a sub-shell. If you want the .profile read in a sub-shell you must explicitly run . $HOME/.profile >Eventually, I would like to put a "sh" in .login so as to bypass the C-shell. >But I don't want to have to change EDITOR manually every time. What you should do is get your system administrator to change your login shell to /bin/sh and thereafter your .profile will be run instead of your .login. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170