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

(0) works as a charm



hello

reconsidering the example i got privately:

print has this -r flags that makes things appears:

    foo=( this bar )
    a=${(pj:\0:)foo}
    b=${(j:\0:)foo}
    print -lr $a $b

gives

    thisbar
    this\0bar

that's why (p) is mandatory while joining:
* if p is present while joining, it must be present while splitting
* -1s/present/absent/g
* as the manual says: 0 means ps:\0:

regards
marc



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