From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25530 invoked by alias); 26 Nov 2014 05:39:10 -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: 19438 Received: (qmail 18574 invoked from network); 26 Nov 2014 05:38:59 -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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ETbETXb5qV6v2EoLZHjdvwFLCfiw+vsTxpiurdIylJU=; b=eBgA+jkAe4QCJI+IQiPocITHGiPwijbwVfI8J95FJ6Msl1Riej5CYCehk+X7RrXilG kPxwMCMqoN0XbEp0F0VuxPCGCBWr1Qxrkh08X0d5euUZiFycRQAjVWtslZu+2BnQpIiX Wxx2AGrba5zeyOozcq9w9rEVrK99sih2A1qJ2lb0FR0l+vCVaKTESyaizhhm2JGoEWt/ V3lwn2bOw8D4dDvCdAbuKjdUv65MdmfdmmIPoRDUCAZaEKOtLty8SLXz4q/pR69USfyc GSY+DpxgAu3KdTj3J/kfN/N/IbhuZmQZvYHr/JsU5T424y2z0KpIDmroSJASTWLUZqHJ xuLg== X-Gm-Message-State: ALoCoQlFI4A0PipR1tAlZ/PAvoV0iekN4UFDymcl/lbxPCf7Dwb6Uu1u/RgLLFoq64DdVTPItnzE MIME-Version: 1.0 X-Received: by 10.152.27.227 with SMTP id w3mr4134111lag.24.1416980335058; Tue, 25 Nov 2014 21:38:55 -0800 (PST) In-Reply-To: <54756216.2070004@eastlink.ca> References: <54752574.5090205@eastlink.ca> <141125203249.ZM18877@torch.brasslantern.com> <54756216.2070004@eastlink.ca> Date: Tue, 25 Nov 2014 21:38:55 -0800 Message-ID: Subject: Re: export From: Kurtis Rader To: Ray Andrews Cc: Zsh Users Content-Type: multipart/alternative; boundary=089e0158c292867a200508bc713b --089e0158c292867a200508bc713b Content-Type: text/plain; charset=UTF-8 No, it is not possible on UNIX like operating systems (which include Microsoft Windows) for "export" to "work between" xterms or any other set of programs. When you execute the "export" or "typeset -x" command in a zsh process it can only modify the environment for that zsh process. On Tue, Nov 25, 2014 at 9:16 PM, Ray Andrews wrote: > On 11/25/2014 08:54 PM, Kurtis Rader wrote: > >> If by "fake it" you mean cooperative processes that implement a protocol >> for exchanging environment variables then, yes, you can achieve the result >> desired by Ray. However I think that everyone trying to achieve this >> result >> wants to do so without having to implement a new data exchange protocol in >> every program. If they were willing to implement a private data exchange >> protocol they wouldn't be asking this question. :-) >> > > As it is, I pass some variables between running shells all the time in > 'preexec()'. > Specifically every shell in every xterm knows the current directory of > every > other so I can do: " cp foo $t4 " with ' $t4 ' being the current dir in > xterm #4. > > But that's not the problem, I just want 'export' to work between xterms if > possible. > It's hardly important tho. > > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank --089e0158c292867a200508bc713b--