Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!metro!wolfen!hls0!george From: george@hls0.hls.oz (George Turczynski) Newsgroups: comp.unix.questions Subject: Re: Shell variables - help Message-ID: <944@hls0.hls.oz> Date: 15 Oct 90 00:31:28 GMT References: <1339@ul-cs.ulowell.edu> Lines: 28 In article <1339@ul-cs.ulowell.edu>, mchetan@hawk.ulowell.edu (Munisuvratha Chetan) writes: > I have a shell program that sets certain shell variables > according to certain working environment. If I execute this > program after logging in, the login shell does not have those > variables (of course, because the shell program is executed in > a new shell). > How do I tell the current shell to execute the shell program in > the current shell, and NOT in a new shell ? > Or, isn't there any such mechanism ? > > Thanx a bunch. What SHELL are you using ??? Oh well, use "source " in the C-SHELL (/bin/csh) and ". " in the BOURNE-SHELL (/bin/sh). Also, RTFM. And by the way, is this on the FAQ list ? If not perhaps it should be. -- George P. J. Turczynski, Computer Systems Engineer. Highland Logic Pty Ltd. ACSnet: george@highland.oz |^^^^^^^^^^^^^^^^^^^^^^^^| Suite 1, 348-354 Argyle St Phone: +61 48 683490 | Witty remarks are as | Moss Vale, NSW. 2577 Fax: +61 48 683474 | hard to come by as is | Australia. --------------------------- space to put them ! ---------------------------