From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2073 invoked by alias); 25 Jul 2013 03:35:57 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17888 Received: (qmail 17543 invoked from network); 25 Jul 2013 03:35:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.212.43 as permitted sender) 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== MIME-Version: 1.0 X-Received: by 10.52.188.73 with SMTP id fy9mr14129911vdc.53.1374723334899; Wed, 24 Jul 2013 20:35:34 -0700 (PDT) Sender: ethersoft@gmail.com In-Reply-To: References: Date: Wed, 24 Jul 2013 23:35:34 -0400 X-Google-Sender-Auth: y-KD4sHCKY1fB7wUoBVKVQM2Ix4 Message-ID: Subject: Re: variables as grouping alternative? From: Vin Shelton To: =?ISO-8859-1?Q?J=E9r=E9mie_Roquet?= Cc: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Jul 24, 2013 at 2:23 PM, J=E9r=E9mie Roquet w= rote: > 2013/7/24 Vin Shelton : >> Is there a way to use a variable as a grouping alternative? E.g.: >> >> pkgbase=3Dlibpng >> f=3D( $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=3D"tar|tar.*|tgz" >> f=3D( $ZIPROOT/$pkgbase-*.($x)(Nom) ); echo $f >> >> yields nothing > > Try $~x instead of $x. > Yes, that works! Thank you. - Vin