zsh-users
 help / color / mirror / code / Atom feed
From: "Jesper Nygårds" <jesper.nygards@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Filtering an array
Date: Wed, 29 Feb 2012 14:43:20 +0100	[thread overview]
Message-ID: <CABZhJg8_9=__hbv3boXj4z62qpPTm9KPSY1qjKQopq9wYrFsyQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.LN8.2.00.1202272208530.18037@ckhb06.ckhb.org>

2012/2/28 S. Cowles <scowles@ckhb.org>:
> this is my version of your function.

Thanks for sharing this; it contains many useful idioms that I will
incorporate into my own solution.

However, if I read it correctly, your solution solves a different
problem than the one I was trying to solve: you version lists all
files that match ANY of the given patterns, whereas my intent was to
only list files which matches ALL of the given patterns. That's the
reason for my cumulative filtering of the results in myfiles.

Thanks again,

Jesper


      reply	other threads:[~2012-02-29 14:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24  7:11 Jesper Nygårds
2012-02-24 10:25 ` Felix Herrmann
2012-02-28  7:24 ` S. Cowles
2012-02-29 13:43   ` Jesper Nygårds [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABZhJg8_9=__hbv3boXj4z62qpPTm9KPSY1qjKQopq9wYrFsyQ@mail.gmail.com' \
    --to=jesper.nygards@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).