From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13029 invoked by alias); 26 Nov 2014 05:37:27 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19437 Received: (qmail 6887 invoked from network); 26 Nov 2014 05:37:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=AduIQRnG c=1 sm=1 tr=0 a=p9xhtsQbFeWP+Dk8WftIHA==:117 a=p9xhtsQbFeWP+Dk8WftIHA==:17 a=G8GL833Es-AA:10 a=N659UExz7-8A:10 a=MPuEi2SQBBKnmDBgpNEA:9 a=pILNOxqGKmIA:10 Message-id: <54756007.6060800@eastlink.ca> Date: Tue, 25 Nov 2014 21:07:19 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: export References: <54752574.5090205@eastlink.ca> <141125203249.ZM18877@torch.brasslantern.com> In-reply-to: <141125203249.ZM18877@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 11/25/2014 08:32 PM, Bart Schaefer wrote: > On Nov 25, 4:57pm, Ray Andrews wrote: > } Subject: export > } > } When I export a variable it is only available in subsequent shells in > } the same xterm. Can I make it export globally? > You guys don't understand what I'm asking. I know I can't pass variables 'backwards' (except via a file), but when I export, the variable will be available in *subsequent* shells but only in the same xterm: pts/2 HP-y5--5-Debian1 root /aWorking/Zsh $ export trash=TRASH pts/2 HP-y5--5-Debian1 root /aWorking/Zsh $ zsh pts/2 HP-y5--5-Debian1 root /aWorking/Zsh $ echo $trash TRASH ... export does what it should do, but *only* in the same xterm. If I now go to another xterm, $trash is not set: pts/9 HP-y5--5-Debian1 root /boot/Clone/y8--5-Debian2 $ zsh pts/9 HP-y5--5-Debian1 root /boot/Clone/y8--5-Debian2 $ echo $trash