zsh-users
 help / color / mirror / code / Atom feed
* (0) not working ?
@ 2019-11-27 13:00 Marc Chantreux
  2019-11-27 13:54 ` Perry Smith
  2019-11-27 14:40 ` (0) not working ? Marc Chantreux
  0 siblings, 2 replies; 11+ messages in thread
From: Marc Chantreux @ 2019-11-27 13:00 UTC (permalink / raw)
  To: Zsh Users

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++
    qa\0c\0c++
    qa\0c\0c++

is there something to setopt? did i miss something ?

regards,
marc

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-11-28 10:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27 13:00 (0) not working ? Marc Chantreux
2019-11-27 13:54 ` Perry Smith
2019-11-27 14:18   ` Marc Chantreux
2019-11-27 14:56     ` Perry Smith
2019-11-27 16:15       ` (0) works as a charm Marc Chantreux
2019-11-27 16:24         ` Roman Perepelitsa
2019-11-27 18:14           ` Perry Smith
2019-11-27 19:33             ` (about quoting) " Marc Chantreux
2019-11-27 20:21               ` Perry Smith
2019-11-28 10:55                 ` Marc Chantreux
2019-11-27 14:40 ` (0) not working ? Marc Chantreux

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).