Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Shell variables - help Message-ID: <1990Oct11.000506.12384@virtech.uucp> Date: 11 Oct 90 00:05:06 GMT References: <1339@ul-cs.ulowell.edu> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 15 In article <1339@ul-cs.ulowell.edu> mchetan@hawk.ulowell.edu (Munisuvratha Chetan) writes: >How do I tell the current shell to execute the shell program in >the current shell, and NOT in a new shell ? What you need to do is "source" the sub-shell. The way you do this varies depending upon which shell you are talking about. Both the Korn (ksh) and Bourne (sh) shells use ".". So if you wanted to re-run your .profile and have its settings apply to your current shell you would enter: . ./.profile -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170