Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: export
- X-seq: zsh-users 19445
- From: Clint Hepner <clint.hepner@xxxxxxxxx>
- To: Kurtis Rader <krader@xxxxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: export
- Date: Wed, 26 Nov 2014 08:37:52 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wAha5p+tgdhDYOxPE9KFQ3ZVK5ZZVYwGTJZrJ+MMTjM=; b=j3Xq6r7BaXYt4vcmFbtR63ylJtbXpwaK8hevSxeGs7S0t8P8yA5gL5fTT9nLL4HH9X 7/d4ijKvK7ZYsCDl5DsnVVx5Edh4Koo8OqhVQEjnhTkt6kxqYHUXxqHIPJcf+D84alpf Hp/hikX0NcedNLxqSc1qWKXlDemMwku9xGUPW4k1WWgVhkpZJNvX3QVEPYq4JyPiS/gy L3XycXcNv2GqseHm+5QFZ9C46gY0gNSZwV9dwxdbCZIkbZZzFEq40lLc1TZFbo5gWjHt RfuNQajtWWZ5ub0r1Gz0JJx0VR8IHlHWtQIXDyCcaJq5TOGGFXITs1oO6A07heS33zGh /arw==
- In-reply-to: <20141126071825.GA3962@chaz.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <54752574.5090205@eastlink.ca> <141125203249.ZM18877@torch.brasslantern.com> <CABx2=D_zLTkdFsV+eT-VrwwaJQYr=1JeZF0eNqH44saPDYMD7Q__49907.9755544246$1416977797$gmane$org@mail.gmail.com> <20141126071825.GA3962@chaz.gmail.com>
On Wed, Nov 26, 2014 at 2:18 AM, Stephane Chazelas <
stephane.chazelas@xxxxxxxxx> wrote:
> 2014-11-25 20:54:39 -0800, Kurtis Rader:
> > 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.
> [...]
>
> FYI, the "fish" shell does that.
>
> set -U universal its value
>
> and that $universal variable (here an array) becomes available
> in all the fish shells (interactive or not) by the same user on
> the machine (with all the security implications it entails).
>
>
Note that fish implements this in a manner similar to one mentioned earlier
in this thread: it uses a separate process that acts as a variable server.
When fish tries to look up a variable, and fails to find it in either the
local or global scope, it contacts the server to see if the variable exists
at the "universal" scope.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author