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 37891
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Should (t)path = array-unique-special work this way
- Date: Fri, 5 Feb 2016 18:34:06 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=FIJ0qiVANsFRjQ6De43inGgAOHkFCfuempzCf4xfJ+0=; b=SWhpaal6IwCYC74QXpTUnR65NT6xhZyLXCuJ+hVUOKg401FHIe1406h9v/s9ZdAMpw 0PtMEKY8qV6wgK2vPmLS6S5odOzFMybm69NXRGs3FP1/I2J4sZ8XhG+1QSrNGJqy7UNH 4YEVVykN2eSGUD2gV1VEmDS9OVE4ZWRq16nr0CUZSktiJzs2/zn77W50TyLHjJP+mG6U LrYREv65SBW/VmD7XjaSMrpW1oNHsoYlO2fHpyaHj8vvRM+U6zVWoXiYPos2vuxWtXD0 Vgw0YTv7bTJpQL2VUeaKcndOQxBsUWiKK5ggbY5skclpsll7DVlQH2g+lyLSd1XWVWPZ yBHg==
- In-reply-to: <160205091543.ZM29723@torch.brasslantern.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>
On 5 February 2016 at 18:15, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Other things you might be asking about:
>
> Q: Why is nr2 repeated when path is declared -U ?
> A: Because it's repeated in $PATH. Array uniqueness of tied arrays is
> only applied when assigning to the array; when assigning to the tied
> scalar, the array faithfully copies the value of the scalar.
That was my question. The path has *-unique in type, this could be
viewed as a guard that no repetition is possible, but the guard is
avoided by assigning to PATH. That's from one point of view
unexpected.
Side, one lesson is not to rely on attached content and always include
plain question.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author