From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21503 invoked from network); 2 Feb 2023 00:44:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2023 00:44:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=qtXhPqr+HbnVJFSbYRiq5DKqIXArFYnLqIYmlVeXOJA=; b=nBUTQbdotaJod7AQX4GvpXRdo1 Zh5vI6UjWzrCPQEpO5unD4ZBTc01qBpEQvbMhHdWExTFl+oeh7cELDO8D2NyP1n3D+XelxcDFyvlB vzB/vDCaFjhKKI3gkutJioLQ7cXFZ3KaJCn4+TQ3My9OCZ0iDTS9+jwS0UWNiXQvp18YHSD7Gr8wQ QdGcy8kHw7nwJ4FKJoIYHsrbr6Ga0JNeAzACgqB+1zm8M7eOgkH4trdWlPhdBwx2qezuqpusQEmXx HQMjp7StWIYpLihz1TvUY0yRRqOkiCq1y0FmtpWi6FIwjOr3D+mf0BCe29AOZNG/ZzP57eVrVnfZI as5zTWcA==; Received: by zero.zsh.org with local id 1pNNiM-000MwA-RX; Thu, 02 Feb 2023 00:44:34 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pNNhb-000MGL-3B; Thu, 02 Feb 2023 00:43:47 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 3D16827C0054; Wed, 1 Feb 2023 19:43:44 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute1.internal (MEProxy); Wed, 01 Feb 2023 19:43:44 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefjedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehgeeiudeigedvvdffvdegfeduudfgtedvtedttdefuddtjeev gfejgfevteehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0437131A0063; Wed, 1 Feb 2023 19:43:43 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-107-g82c3c54364-fm-20230131.002-g82c3c543 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <754f2048-2882-b7a9-560b-7c0564ac112b@eastlink.ca> <6240098f-7327-c73c-cbba-8bf4af5fce5c@eastlink.ca> <0810ab9b-ba5d-5b0c-1d63-a307573f1d22@eastlink.ca> <8a2bb99d-9ef0-b71d-f00f-96df346abc56@eastlink.ca> <5a5479bc-24ec-4d3b-9702-98b907c17440@app.fastmail.com> <20b89b79-11bb-13fc-2867-6bbb9b979c00@eastlink.ca> <06f23969-572a-fbb7-8801-fc17e7da3d2c@eastlink.ca> <70c2b9b5-a6f7-225c-49d4-a6b225e5bdbf@eastlink.ca> Date: Wed, 01 Feb 2023 19:43:23 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: (j.|.) Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 28886 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Wed, Feb 1, 2023, at 5:47 PM, Ray Andrews wrote: > I guess nobody's interested in these things but here's another=20 > interesting one: > > > =C2=A0=C2=A0=C2=A0 3 /aWorking/Zsh/Source/Wk 0 $ typeset -LZ zz=3D'=C2= =A0 Howdy=C2=A0 '; echo $zz;=20 > dp zz > =C2=A0 =C2=A0=C2=A0=C2=A0 How > =C2=A0=C2=A0=C2=A0 scalar-left-right_zeros zz=3D'=C2=A0 Howdy=C2=A0 ' > > Doc only says that '-LZ' will be specially handled but doesn't say how=20 > right there. Look at the documentation for "typeset -L". > BTW we seem to use 'zeroes' sometimes in the docs=20 > which is strictly speaking correct for 'zeroes in on the target' but=20 > deprecated as the plural. Debatable. No reason to use both, though. > =C2=A0Ah!=C2=A0 It's not documented that I can see, but maybe the abo= ve is=20 > accurately descriptive: > > > =C2=A0=C2=A0=C2=A0 3 /aWorking/Zsh/Source/Wk 0 $ typeset -LZ zz=3D'00= 0Howdy000'; echo=20 > $zz; dp zz > =C2=A0=C2=A0=C2=A0 Howdy > =C2=A0=C2=A0=C2=A0 scalar-left-right_zeros zz=3D000Howdy000 > > ... so thereyago, it stripped zeros left and right :-) > > Doc says leading zeros will be removed but silent about trailing zeros. That's because nothing is done to trailing zeros. % unset zz % typeset -LZ zz=3D000Howdy000 % echo $zz Howdy000 =20 % print -nr -- $zz | od -A n -t a H o w d y 0 0 0 sp sp sp I can't reproduce your results. Try again in a clean shell, perhaps. --=20 vq