From owner-freebsd-questions Thu Jun 28 6:24:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freeze.org (www.stelesys.com [208.177.187.226]) by hub.freebsd.org (Postfix) with ESMTP id 463ED37B40A for ; Thu, 28 Jun 2001 06:24:23 -0700 (PDT) (envelope-from jim@freeze.org) Received: (from jim@localhost) by freeze.org (8.11.3/8.11.2) id f5SDOBc10041; Thu, 28 Jun 2001 09:24:11 -0400 (EDT) (envelope-from jim) X-Authentication-Warning: www.stelesys.com: Processed from queue /var/spool/alt_queue X-Authentication-Warning: www.stelesys.com: Processed by jim with -C /web/siteinfo/freeze/mail/sendmail.cf Date: Thu, 28 Jun 2001 09:24:11 -0400 (EDT) From: Jim Freeze X-X-Sender: To: Subject: How to have a script set an environment variable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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