Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: selecting a subset of an array




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