Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 09:24:11 -0400 (EDT)
From:      Jim Freeze <jim@freeze.org>
To:        <questions@freebsd.org>
Subject:   How to have a script set an environment variable
Message-ID:  <Pine.BSF.4.32.0106280919330.9354-100000@www.stelesys.com>

next in thread | raw e-mail | index | archive | help
Hi:

I don't know if this can be done, but I am would like
to write a script that would set an environment variable
for a particular terminal window.

I am running tcsh. If I write a script such as:
#! /bin/sh
set TEST "test"
export TEST

TEST is set for the script, but not for the parent
terminal. Is there a switch I can send to /bin/sh
to use the parent's environment?

Thanks


=========================================================
Jim Freeze
jim@freeze.org
---------------------------------------------------------
No comment at this time.
http://www.freeze.org
=========================================================


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32.0106280919330.9354-100000>