diff --git a/zpwrExpandApi.zsh b/zpwrExpandApi.zsh index e6b0f2c..f77e5d3 100644 --- a/zpwrExpandApi.zsh +++ b/zpwrExpandApi.zsh @@ -27,10 +27,8 @@ function zpwrExpandParseWords(){ tmp=${1} tmp=( ${(z)tmp} ) - # change <( to ; for word splitting - tmp[-1]=${tmp[-1]:gs/\<\(/;/} - # change $( to ; for word splitting - tmp[-1]=${tmp[-1]:gs/\$\(/;/} + # change <(, =(, $( to ; for word splitting + tmp[-1]=${tmp[-1]//[\<\=\$]\(/;} # change ` to ; for word splitting tmp[-1]=${tmp[-1]:gs/\`/;/} # allow expansion in ""