Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: transformations of glob results
- X-seq: zsh-users 20638
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Marc Chantreux <khatar@xxxxxxxxx>
- Subject: Re: transformations of glob results
- Date: Wed, 23 Sep 2015 22:59:02 +0200
- Cc: Zsh Users <zsh-users@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=ofwwwzvWOgAOWfWMGK67zPba0s3EYx0MbcV17ZjBpGM=; b=KofNWORlY78wRPhwbuA4UjUZPnUhpdN54BWMulcYJrn0IIZ9bUHJCboDdLRqxs2hUN ORYtS3SNiVWFcLhgR4GAi6zRCyAwYQtOc30soWl+luDcrMd5ddt51tDde5tKreJCKXcY sGH7gzQr0Dasu7c5i/sBuY89excGMYW2OY//2aqXb8W1SLqFSmtg42wXgfH7TioaFpIf KqT1c+o2IOED9cVohte7o1qsfXujY4gltgVe0QhuOzbe5kim56o49X/oh8sFMCPCHvKP JFiia4aDcEF/nvx4uEK95bdQcTt5098ybkxZxf7tk/NUTUoN32ZV7n0DylZupIOqYIuZ Kfsw==
- In-reply-to: <20150923144151.GA23817@ramirez.u-strasbg.fr>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20150923080648.GA1294@ramirez.u-strasbg.fr> <CAHYJk3SVuysyj=Nzg7ntKh2j7qZu+jZ=04_hfLwo6aW2WjCsaA@mail.gmail.com> <20150923144151.GA23817@ramirez.u-strasbg.fr>
On Wed, Sep 23, 2015 at 4:41 PM, Marc Chantreux <khatar@xxxxxxxxx> wrote:
> hello,
>
>> use an anonymous function but all that really does is give you a free
>> local variable, (eg, () { print ${(j:,:):-listmaster@$^@}} }
>
> the thing is: you can't expand a list in an anymous function as it
> communicates with pipes. i'm stuck there but the question was out of
> curiosity.
I'm not sure what you mean by this. There are no pipes in any of the
commands you or I wrote.
% () { print ${(j:,:):-listmaster@$^@} } /etc/*/.keep(:h:t)
listmaster@conf.d,listmaster@env.d,listmaster@modprobe.d,listmaster@opt,listmaster@xml
(as it happens, I did have a } too many before).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author