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

Re: param expansion flags



On May 6,  1:48pm, Dominic Mitchell wrote:
} 
} Can anyone offer me some advice?

Do it in several steps and worry later (if ever) about compressing
them down to a single nested parameter expansion.

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



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