Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (0) not working ?
- X-seq: zsh-users 24468
- From: Marc Chantreux <eiro@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: (0) not working ?
- Date: Wed, 27 Nov 2019 15:40:17 +0100
- Dkim-filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org 1F52F12A0E
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1574865619; bh=+1aOprYRCOBFaAnSnbbB6bD6CmUTAY0ZU/w1Hhs9/M8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=nRfiFrm1bJXQX1x97phMEtUY4y/AUGiD13hK5kTkSTsIBGfe/Q9P/gllzI2lI+Oou gleQVZMqxyaCBbsIKERHT7ryVev4yDbNqHjDO/jy1+rw1cwQMiqSIwYGwfc1AgiiUY VmPIHrchXetKfIQKwNvVjxo73oJENh26dFSBNyp59n6kB8ucavDt5i09eLVHRr52qo Z79PrIZc72dD+Tl2j6mjeDlTq1rVBWHpktFTQ0WRIK4PtSBxIunooPyDoF72MLPTxa bqtP7awEqApkpRaXb8xs06nYk6MsaaaibYcrzDoZ5HAKFc6O5wiCs0y3g7NT1eS/hT Sa2akKdh8dLxg==
- In-reply-to: <20191127130038.GA19354@prometheus.u-strasbg.fr>
- 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
- References: <20191127130038.GA19354@prometheus.u-strasbg.fr>
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