Shell variables - help

George Turczynski george at hls0.hls.oz
Mon Oct 15 10:31:28 AEST 1990


In article <1339 at ul-cs.ulowell.edu>, mchetan at 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 <filename>" in the C-SHELL (/bin/csh)
and ". <filename>" 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 at 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 !    ---------------------------



More information about the Comp.unix.questions mailing list