Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
(0) not working ?
- X-seq: zsh-users 24465
- From: Marc Chantreux <eiro@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: (0) not working ?
- Date: Wed, 27 Nov 2019 14:00:38 +0100
- Dkim-filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org B9C17110EA
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1574859640; bh=68gUT43qkCbeuQpsDlLuN6QWY5fsKDNBo/rMYzLUjw0=; h=Date:From:To:Subject:From; b=cHXAusHtQ3+JMVh2oldfXNCfFOOkxjkrTxYtHw2oYdyIlag1RM4VkEvZTDFo1SCX5 aLKXMzfhObdyJ+hEO8ikDJXDOChgePt8jnvdEcEzRGp0Wf2+XrnqTunT0RA95KqYp9 F7u1fzpDGPDDi1/dTiW0RBsCzICtiIgtOz/4FFbYrl9I/+LQ+9JcZUxpSs4EsDFxoe vDCt2dd30rVLysNp48ZyorFn6FFBTtGYjw9Jdu/QOyy/9uSKgEC7+kuog+RvzOtqkZ QSEjc1Dp5veRIjzdjr9v/ME5LPOU3EqLYuvOCcUR8Lr5kspdctTSucqpKKlGJgTyq+ hCO5FwRGhpgvA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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 c c++
qa c c++
is there something to setopt? did i miss something ?
regards,
marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author