Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: parameter substitution for exclusion by array



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