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

(0) not working ?



hello people,

in zshexpn, i read about 0: "This is a shorthand for `ps:\0:'".
so i wrote:

    assigned_to=( qa c c++ )
    local -A user=(
        login marc
        roles ${(j:\0:)assigned_to}
    )
    print -l ${(s:\0:)user[roles]}
    print -l ${(@0)user[roles]}
    print -l ${(@0)user[roles]}

and i got

    qa
    c
    c++
    qacc++
    qacc++

is there something to setopt? did i miss something ?

regards,
marc



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