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

Re: param expansion flags



Dominic,

> I've gotten part of the way there, but I can't figure out the rest.  So
> far, I've gotten it to split out the lines, remove "rake " from the
> front and start putting the initial square bracket in.
> 
>     % arr=( ${${${(f)~~"$(rake -sT)"}#rake }/ *# /[} )
> 
> Can anyone offer me some advice?

This seems to work:

  arr=(${^${${${(f)~~"$(rake -sT)"}}#rake }// *# /[}}])

The only difference is that your expression is now placed into
${^...} so that the trailing ] is appended to every line.

-- 
 Haakon



Messages sorted by: Reverse Date, Date, Thread, Author