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

Re: (0) not working ?



hello,

I spotted the error thanks to an example in a private message:

Ok. i got it reading your example: (pj:\0:) and (j:\0:) don't
behave the same even if it looks so when you print the string.

    print $user[roles]
    print -l ${(0)user[roles]}

gives

    qa=00c=00c++
    qa=00c=00c++

when serialized with ${(j:\0:)assigned_to} and

    qa=00c=00c++
    qa
    c
    c++

when serialized with ${(pj:\0:)assigned_to}.

thanks a lot and regards,
marc



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