From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e7aa599e for ; Wed, 27 Nov 2019 15:05:59 +0000 (UTC) Received: (qmail 9935 invoked by alias); 27 Nov 2019 15:05:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24468 Received: (qmail 4658 invoked by uid 1010); 27 Nov 2019 15:05:53 -0000 X-Qmail-Scanner-Diagnostics: from aurora-borealis.phear.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25642. spamassassin: 3.4.2. Clear:RC:0(94.242.205.164):SA:0(-2.0/5.0):. Processed in 0.698028 secs); 27 Nov 2019 15:05:53 -0000 X-Envelope-From: eiro@phear.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at phear.org designates 94.242.205.164 as permitted sender) X-Virus-Scanned: amavisd-new at phear.org 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== Date: Wed, 27 Nov 2019 15:40:17 +0100 From: Marc Chantreux To: Zsh Users Subject: Re: (0) not working ? Message-ID: <20191127144017.GC22743@prometheus.u-strasbg.fr> References: <20191127130038.GA19354@prometheus.u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191127130038.GA19354@prometheus.u-strasbg.fr> User-Agent: Mutt/1.10.1 (2018-07-13) 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