Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: selecting a subset of an array
- X-seq: zsh-users 8939
- From: djh <henman@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: selecting a subset of an array
- Date: Thu, 02 Jun 2005 17:42:30 +0900
- In-reply-to: <429EC30C.2070401@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <5D68F5D7-430A-44F5-A1A3-CB4690AB13CD@xxxxxxxxxxxxxxxxxxxx> <429EC30C.2070401@xxxxxxxxxxxxxx>
Sorry, in my explanation I used a hypen in the parmater name inthe
example and later realized that you can not use a hyphen in a parmater
name like I did.
So for your example: ${_list:#foo1*}
Kagawa-san,
try using ${array-namae:#pattern} Here's the explanation I found
in the manual.
_list=( 'foo1:output file' 'foo2:input file' 'foo3:output figs'
'foo4:input figs' )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author