zsh-users
 help / color / mirror / code / Atom feed
From: "Jérémie Roquet" <arkanosis@gmail.com>
To: Vin Shelton <acs@alumni.princeton.edu>
Cc: zsh-users@zsh.org
Subject: Re: variables as grouping alternative?
Date: Wed, 24 Jul 2013 20:23:14 +0200	[thread overview]
Message-ID: <CAFOazAOgKiQeQWL6P3dh8iqw7Q31FejCvPhc3qckZvoRwkuf3w@mail.gmail.com> (raw)
In-Reply-To: <CACeGjnWiZih5kT99mcuLhjzC8Gn62YeXfqub4Sq6yTs5auVE8Q@mail.gmail.com>

Hi,

2013/7/24 Vin Shelton <acs@alumni.princeton.edu>:
> 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


  reply	other threads:[~2013-07-24 18:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 18:14 Vin Shelton
2013-07-24 18:23 ` Jérémie Roquet [this message]
2013-07-25  3:35   ` Vin Shelton

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=CAFOazAOgKiQeQWL6P3dh8iqw7Q31FejCvPhc3qckZvoRwkuf3w@mail.gmail.com \
    --to=arkanosis@gmail.com \
    --cc=acs@alumni.princeton.edu \
    --cc=zsh-users@zsh.org \
    /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).