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

${(z)} parsing of multiple array assignments



In the following two cases, why are the assignments to $b
parsed differently to the assignments to $a?

    % pz() { print -rl -- ${(qqqq)${(z)1}} }

    % pz 'a=() b=()' 
    $'a=('
    $')'
    $'b='
    $'()'

    % pz 'a=(foo) b=(bar)' 
    $'a=('
    $'foo'
    $')'
    $'b=(bar)'

Thanks,

Daniel



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