From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24826 invoked by alias); 22 Apr 2012 12:55:32 -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: 30438 Received: (qmail 22387 invoked from network); 22 Apr 2012 12:55:21 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.160.43 as permitted sender) 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 :cc:content-type; bh=0+FNN+nseJUj54uwAgcmQmuNWo4pOHYtQJxiRppn3eU=; b=TB7g4MWvvhFcYUtOsBfkhojqOm24B+zXq+oF4w62U0jhxedyxupqENt0YjF+Stp+LN mqG2EZj115416+5xYz6MJ7rWATA6TmgKNUC6yNRoBrHpxFFsuWu3kpnLhRYLTAm186rj /iNgnTv90OWFc9glzmWiTwM5ZRC5nkAStckzF/u6Ead51xXlMOEOAvP5c2gQokjHU9z4 Gy9vSUj0hGLEWnUT61BV7yKxh9MeG1hgSw5n1EtmAwBJt6HH4cQeJpKNjRZ8BiJeCr8z YdteSVLZSxWVnYiTFowlLQx3OREkpW545ttm0Af4kKSjyYvrVV6S5KjKUpNNm4F4NrkX oxRA== MIME-Version: 1.0 In-Reply-To: <20120420202051.367d012e@pws-pc.ntlworld.com> References: <20120420202051.367d012e@pws-pc.ntlworld.com> Date: Sun, 22 Apr 2012 14:55:15 +0200 Message-ID: Subject: Re: PATCH: parameter substitution for exclusion by array From: Mikael Magnusson To: Peter Stephenson Cc: "Zsh Hackers' List" Content-Type: text/plain; charset=UTF-8 On 2012-04-20, Peter Stephenson wrote: > > Then I realised it was a trivial modification to get the intersection of > two arrays instead. For that, ${...:&...} might be nice, but :& can be > a history modifier. So I picked ${...:*...} as being the nearest thing > that wasn't used. Using ${path:*notexist} prints all elements of $path, not sure if that is what one should expect or not. ${path:|notexist} does the same but that makes a lot more sense to me :). ${path:*SCALAR} and :| act the same way, substitute all elements in $path. -- Mikael Magnusson