From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12326 invoked from network); 11 Apr 2001 16:18:28 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Apr 2001 16:18:28 -0000 Received: (qmail 26044 invoked by alias); 11 Apr 2001 16:18:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3815 Received: (qmail 26019 invoked from network); 11 Apr 2001 16:18:13 -0000 Date: Wed, 11 Apr 2001 10:18:01 -0600 From: Steve Talley To: zsh-users@sunsite.dk Subject: Tying multiple environment variables together Message-ID: <20010411101801.D818@rmtc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Hi, There are three environment variables that are used by various programs, that all need to be the same value. From .zshenv: export JAVA_HOME=/usr/java export JDKHOME=$JAVA_HOME export JDK_HOME=$JAVA_HOME Unfortunately when I change the value of one I have to change all three. Is it possible to tie the values together, so that after changing one they all get changed? Something along the lines of typeset -T, but for environment variables? Thanks, Steve