Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: variables as grouping alternative?
- X-seq: zsh-users 17888
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: Jérémie Roquet <arkanosis@xxxxxxxxx>
- Subject: Re: variables as grouping alternative?
- Date: Wed, 24 Jul 2013 23:35:34 -0400
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xWxCzwwOxRasSaeRpTgcKiAVG94tx1lSUz+6s2jSPIw=; b=iB5oBwMagCA84QCeiUedZXxJSMFcvOWVji3kCdFCyhMvogcmfnfXymOjuMmY6GmtT1 nhLPNPP8Abim3P/Sw/3u886d+mBsk7dsGhCPj6l3KUe/76w+MXdFi0Ybdgjf88wT5CpS R3K+Ux8tGeW2HSYK5UjiVRCNHyANG/YSnhetxnjZVhiL6g2RH66MyT5f1+cen9zKPIPZ 8w1CUy6f83gSJitpKI1QYDzd46c7b3PEhEd7RH4Aisb/hleCk53K0ITHmPRVn7B55OQ5 hv+wMoH4xjxNBySI3lD6D+QHrjPqreY14/w3L/3W4/dkOQ3HeJgYRAja/n8kxWcxdYoV QaGg==
- In-reply-to: <CAFOazAOgKiQeQWL6P3dh8iqw7Q31FejCvPhc3qckZvoRwkuf3w@mail.gmail.com>
- 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: <CACeGjnWiZih5kT99mcuLhjzC8Gn62YeXfqub4Sq6yTs5auVE8Q@mail.gmail.com> <CAFOazAOgKiQeQWL6P3dh8iqw7Q31FejCvPhc3qckZvoRwkuf3w@mail.gmail.com>
- Sender: ethersoft@xxxxxxxxx
On Wed, Jul 24, 2013 at 2:23 PM, Jérémie Roquet <arkanosis@xxxxxxxxx> wrote:
> 2013/7/24 Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>:
>> Is there a way to use a variable as a grouping alternative? E.g.:
>>
>> pkgbase=libpng
>> f=( $ZIPROOT/$pkgbase-*.(tar|tar.*|tgz)(Nom) ); echo $f
>>
>> yields:
>> /opt/zip/libpng-1.6.3.tar.gz /opt/zip/libpng-1.2.46.tar.gz
>> /opt/zip/libpng-1.2.40.tar.xz /opt/zip/libpng-1.2.31.tar.bz2
>>
>> x="tar|tar.*|tgz"
>> f=( $ZIPROOT/$pkgbase-*.($x)(Nom) ); echo $f
>>
>> yields nothing
>
> Try $~x instead of $x.
>
Yes, that works! Thank you.
- Vin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author