Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
variables as grouping alternative?
- X-seq: zsh-users 17886
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: variables as grouping alternative?
- Date: Wed, 24 Jul 2013 14:14:33 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=eztaWqcsDdin/x0yrJd6lcanrjbzWj0UBYPNJWrlo+U=; b=ekFahqh7ziPz3bUX7k04LPekMaJVB6eNtYf9gbQXBT3wlUeHTqgeEFFEzcGxL9F6rm +h6L9YezPM7Ne8UxheFTUad/KIZLyMVLrvxCpazDqQxhG1MejEPsBY90lJiGBzfvoc04 sSnyxm4P4lB3ENh3NrMvPunhSORmCNrtdZBE0tISI4SBrVGhD1XAzbptQK8NpQWdy/hu +BywF2kJ5eioQOpx39Th01mL6K0Jr2hkNYsA+OsUyaQZfo9SZ8C2OBh1nJzanNZT2OjK 2TlwhOjcBhgelPq/GnHMhZiP/UMR45HXmZByQRo37MOWFC4eaZBWDlDRyh/BmaWV5q6V FoEQ==
- 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
- Sender: ethersoft@xxxxxxxxx
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
Thanks in advance,
Vin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author