From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26908 invoked by alias); 5 Feb 2016 17:34:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37891 Received: (qmail 11396 invoked from network); 5 Feb 2016 17:34:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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== 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:from:date :message-id:subject:to:cc:content-type; bh=FIJ0qiVANsFRjQ6De43inGgAOHkFCfuempzCf4xfJ+0=; b=QF56t38Jwnff0dNLNgSlP+7TDMRTNF+B3HlwG+Ejrc0MemXwwiJOAzN/Yq2jtcvtAs LxUvJdUGDbPcJ786YXLIzNAurfPCyz9sNUfhl97pdcOWOqSXhBu2JPaAZ8MX+Ru2Vmsq +Os1lhX6g8bg2+bBSCL++L+8q53CewtSyOxc03N2QYMkT3nL5Zj4u2MRJpsmWVXh4/VU HYab9jf/+BCrSRh+c3t9xmUA8tq0Mo0BK0xAVwDVuUK5KacjSUgdmd5lxiCgvlv7ACbF b04aVQUN2GkgaPuoNV6TDFQuZejBYZ79SEIAjWMXA30sy6498WnF3dxFsFy/s+yskXSY umMQ== X-Gm-Message-State: AG10YOTXgK/BXxgNOjiyWNVyEFwwSZRVQJyNsW56lI0DQBevq2QvhfkoJPtunHpSfwoq/FcwKQHZC5dwE8jn1w== X-Received: by 10.112.137.129 with SMTP id qi1mr6479206lbb.31.1454693665482; Fri, 05 Feb 2016 09:34:25 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <160205091543.ZM29723@torch.brasslantern.com> References: <160205091543.ZM29723@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Fri, 5 Feb 2016 18:34:06 +0100 Message-ID: Subject: Re: Should (t)path = array-unique-special work this way To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On 5 February 2016 at 18:15, Bart Schaefer 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