From: Marc Chantreux <marc.chantreux@ulpmm.u-strasbg.fr>
To: zsh-users <zsh-users@sunsite.dk>
Subject: Re: e:: with an array ?
Date: Wed, 23 Aug 2006 10:48:10 +0200 [thread overview]
Message-ID: <20060823084809.GB12479@ulpmm.u-strasbg.fr> (raw)
In-Reply-To: <060822202616.ZM7566@torch.brasslantern.com>
le 22/08/2006,
Bart Schaefer nous écrivait :
> On Aug 22, 10:45pm, Marc Chantreux wrote:
> In general there's no correlation between glob qualifiers and parameter
> expansion flags, so you shouldn't expect that. E.g. ${(U)x} means to
> convert $x to uppercase, but *(U) means to match files owned by the
> current effective user ID.
In general .. but this correlation can be very usefull so i've tried
something that smells logical for me :-)
> } I haven't found an alternative in the doc so i wonder again
> } (http://www.zsh.org/mla/users//2006/msg00193.html) if there is a kinda
> } perl grep :-)
>
> If you mean
> grep { func } @x
this grep, yes.
> as in
> map { if (func) { $_ } else { () } } @x
> then no, there is no direct zsh equivalent, except in the special case
> where func is the zsh equivalent of m/pattern/.
something like python yield, so ?
no ... i'm kidding!
Thanks for enligthenment, Bart.
regards
mc
--
téléphone : 03.90.24.00.19
courriel : marc.chantreux@ulpmm.u-strasbg.fr
---------------------------------------
prev parent reply other threads:[~2006-08-23 8:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-22 20:45 Marc Chantreux
2006-08-23 3:26 ` Bart Schaefer
2006-08-23 8:48 ` Marc Chantreux [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=20060823084809.GB12479@ulpmm.u-strasbg.fr \
--to=marc.chantreux@ulpmm.u-strasbg.fr \
--cc=zsh-users@sunsite.dk \
/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).