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 cdc19195 for ; Wed, 27 Nov 2019 16:16:38 +0000 (UTC) Received: (qmail 14213 invoked by alias); 27 Nov 2019 16:16:28 -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: 24470 Received: (qmail 21545 invoked by uid 1010); 27 Nov 2019 16:16:28 -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 2.128444 secs); 27 Nov 2019 16:16:28 -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 5301412AE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1574871347; bh=GSOQvvpeBUxsqauvS4xjEow2LrDZJ20XJiesYUsXa6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iClJzyi3lATysd556IfxD+bE2TNkppP3YV0eVNnPRTj6kQ200crSB6XSaV48zsnOP zU/St5m9AigUS3k+0lVvQJOmjplboy055FUBmX3US5b+gpiLstAPBtqigwjzXkqDU1 Oa6ictV1ZzmG+/hEYAMRovLPpW3Fzq3Oqy9Aam9r0TzqsAfSoqDYoGG/kYoTTwJVea eVjdfLqiCaWaMTFZTnKKsXSZhhNbFgBl3VIIUgTqesaxyTixD2ikZnuYIw8neOf5YZ gaAHcnOLd2cZuTmrJL8gQbZ4IcpJp0Q/ZuzRDax6s2nD4MJdd3qn7T43G21q5Fj37B JbZXL5H4Q778A== Date: Wed, 27 Nov 2019 17:15:45 +0100 From: Marc Chantreux To: Perry Smith Cc: Marc Chantreux , Zsh Users Subject: (0) works as a charm Message-ID: <20191127161545.GA28917@prometheus.u-strasbg.fr> References: <20191127130038.GA19354@prometheus.u-strasbg.fr> <7C08CB02-19E7-49BA-A511-3239B2ABD614@easesoftware.com> <20191127141820.GA22743@prometheus.u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) hello reconsidering the example i got privately: print has this -r flags that makes things appears: foo=3D( this bar ) a=3D${(pj:\0:)foo} b=3D${(j:\0:)foo} print -lr $a $b gives this=00bar 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