Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: variables as grouping alternative?
- X-seq: zsh-users 17887
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: variables as grouping alternative?
- Date: Wed, 24 Jul 2013 20:23:14 +0200
- Cc: 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:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=r7xstnQODeN2EJomFnEI2xuo0LKnT9SGLnUbkbilmZw=; b=IqbldTNT15kohkIIZZDdb+XX2DzsuLoLMtDNWSzCi6o1PjwAsX+nTiAtEfpnCihkUo jgTBpcizTbxOgCNmdud4hlwRaFtUB4EhboqXG2Z3akVeGfpT/4g5ru78dBoJdy0Yp61t rBhkyAGuYp+wsl2NYQD1WZ2hOOLxFKnO+Qmqe09VLkbIWwe5JxoE2li+6UT0av+kiDrr bLiN37cgenOvKb+BeLhscyhC8UuSu7PhviKM46JmlphJVP7xRhLR/ad+AwqnMelOncaF mNZxww4cIJqcIQRZ8pKG8HpUxN++3dVljcWHAjW1IcI2iedyW83BpACfZr/waF1hjmIM N/Ig==
- In-reply-to: <CACeGjnWiZih5kT99mcuLhjzC8Gn62YeXfqub4Sq6yTs5auVE8Q@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>
Hi,
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.
Best regards,
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author