Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Should (t)path = array-unique-special work this way
- X-seq: zsh-workers 37970
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Should (t)path = array-unique-special work this way
- Date: Sun, 14 Feb 2016 10:44:28 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=gF/7DCSjzz8ZUECKRcyjtwE48njfndyEnOQsbX+EiW4=; b=LZPRobxf0zt1r4FjlR3n2eL6GPcLEJWpESEJxaKg897ddGQ3MEXxifGX6uFC9B4/4U uyB9mRKWdverkrosb0UcL6hfq04yCmHhV9cWFfAxHev15m1s/SspFZ4z60O7Qmadkywv MakSwvqci26g1KsYi5DZUh6GPyMEmRHQAkraNRibb8jdh2LofJPC/1PSxRozpjc4RewS c5kFSY45pKmszeafaySI2cCZkpiaVLPKksaa7rQZ99FzJFEYON00UgOVDieKIkqfXIs/ PkjUjjy3eaTS3QnpWgx4zm6qjn2/oEgTKTtx8lBbx1tfyQAImF3XPJbRzhxfdjsy40wH vPag==
- In-reply-to: <CAKc7PVBrDBe-QQ5=3uC_G_eQSmg1MvSaG8QBdQN3Zn_htHkZmw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCDHQDc=sby5wGNEtWCA6omFhmP8uPWbsPXwTQv9tDqFw@mail.gmail.com> <160205091543.ZM29723@torch.brasslantern.com> <CAKc7PVBrDBe-QQ5=3uC_G_eQSmg1MvSaG8QBdQN3Zn_htHkZmw@mail.gmail.com>
On Feb 14, 11:04am, Sebastian Gniazdowski wrote:
}
} Wanted to write a snapshot feature, basically declare -p > snapshot;
} setopt typesetsilent; source ./snapshot, but the omission of -U is
} quite a blocker.
This doesn't work in the general case anyway, because the output of
"typeset -p" (aka "declare -p") doesn't properly reflect local scopes.
That is, if you're in a local scope, sourcing the "declare -p" output
will create all the variables at that local scope, not at the scopes
where they were originally defined.
In fact it's impossible to correctly reconstruct the local and global
scopes because of the runtime dynamic scoping rules.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author