Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: parameter substitution for exclusion by array
- X-seq: zsh-workers 30438
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: PATCH: parameter substitution for exclusion by array
- Date: Sun, 22 Apr 2012 14:55:15 +0200
- 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: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==
- In-reply-to: <20120420202051.367d012e@pws-pc.ntlworld.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: <20120420202051.367d012e@pws-pc.ntlworld.com>
On 2012-04-20, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author