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 4f25ed26 for ; Wed, 27 Nov 2019 19:34:14 +0000 (UTC) Received: (qmail 25033 invoked by alias); 27 Nov 2019 19:34:04 -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: 24473 Received: (qmail 18381 invoked by uid 1010); 27 Nov 2019 19:34:04 -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 1.656553 secs); 27 Nov 2019 19:34:04 -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 C9A1E12A3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1574883205; bh=nf3tAhnZ7QHl0bT2oOgbAYsA1GTrIlyeX0eIDf9YHvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dBCMpqREiepohnOa1z55IJ679BNgPhYAV9SRHsVQhZzbc3DjLmp0pH3DQfElb7q8E 9cv506V8Uw/BwuNZ690tx6EGn+eFSrPfCJHPcjyNFAI2sBu1Ai49vnL4ETrLlmXiq7 tFdwDo5TUDTjBDH/4Qi2mOhwb7KGN6h0P7+g444tPsnVI6yINNO/zX0DLHW3vp0arI fdLnraxV4B+AIwWmmlgVpO2iDpOyZ7VQjK3Kzjcxw63bD3xmbnjYaB1AYrpSBYXas4 D314cjfQti2bQaggOO8I8vZEQmByvGbAzAiPn94Aak4h0BqZfFLa7XZs3mH3cvAHml /uxKkbNpSVTUg== Date: Wed, 27 Nov 2019 20:33:22 +0100 From: Marc Chantreux To: Perry Smith Cc: Zsh Users Subject: (about quoting) Re: (0) works as a charm Message-ID: <20191127193322.GA4955@prometheus.u-strasbg.fr> References: <20191127130038.GA19354@prometheus.u-strasbg.fr> <7C08CB02-19E7-49BA-A511-3239B2ABD614@easesoftware.com> <20191127141820.GA22743@prometheus.u-strasbg.fr> <20191127161545.GA28917@prometheus.u-strasbg.fr> <73072ADC-23B3-4D77-B681-5208A8F6F99C@easesoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <73072ADC-23B3-4D77-B681-5208A8F6F99C@easesoftware.com> User-Agent: Mutt/1.10.1 (2018-07-13) hello, > Are you saying that ‘\0’ is a quoted null character while $’\0’ > is a quoted string with one character which is a null and somehow > zsh keeps quoted characters different from quoted strings? the opposite: $'' is yet another quoting style in zsh to know what will be expanded | "" $'' '' none ---+----------------- $ | yes no no yes \ | yes yes no no[1] [1] remove the '\' symbol print -r "\n" $'\n' '\n' \n | xxd first i was confused because by default, print interpolate \ before printing as long as you don't use -r. so x='\0' print $x x=$'\0' print $x looks the same regards marc