From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 407F42221B for ; Fri, 16 Feb 2024 20:40:34 +0100 (CET) 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=suQHl9k0ynV7rFvvTOb4v4Y6IlZ4xVDg6DAm4ELFv+w=; b=DeKcTzW2GjzNPE9Iz4L8WVnQra cSFMzJkr1mohCvDnuE7uPwR3AUEsbm3C3kfr/PQufF7YAmFvizW9GDnOfVv6c529nsGQ/2T12Dqb5 NECYKmhHapZhWF3V7UzCYYIi/ZMi2NvaBpZLttBed1VB/S7ErDa2sCoHRIrLTjMALfw4a7lE7tkl0 2EobPSK+H+z1YdjLhykkQAwdMVQOsL1GHjf1vuv/8/gNIfsr1nNI55cub43ROvgEq6A8d8LiGsi2u 0sKDQF3/6Bg5tKfEKL9dWybx3Ri/z4XpE1aNvSHV4WHo4PdinHZ5tkqxRs6pLd1ZpSkvAgI1tMY+D NwBkChyg==; Received: by zero.zsh.org with local id 1rb44Y-000Nqx-2A; Fri, 16 Feb 2024 19:40:34 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rb420-000Mpy-7M; Fri, 16 Feb 2024 19:37:57 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 7AB9A1200064; Fri, 16 Feb 2024 14:37:54 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Fri, 16 Feb 2024 14:37:54 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvgdduvdeiucetufdoteggodetrfdotf 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 439DB31A0065; Fri, 16 Feb 2024 14:37:54 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 MIME-Version: 1.0 Message-Id: <8691219b-313f-4876-963b-75fddd39be85@app.fastmail.com> In-Reply-To: References: <8fc8b27a-9f1b-4d7f-8865-cbf41cc7374e@app.fastmail.com> Date: Fri, 16 Feb 2024 14:37:34 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Bart Schaefer" Cc: zsh-users@zsh.org Subject: Re: Counting characters in command output? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 29686 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 Fri, Feb 16, 2024, at 1:03 PM, Bart Schaefer wrote: > On Thu, Feb 15, 2024 at 8:55=E2=80=AFPM Lawrence Vel=C3=A1zquez wrote: >> >> + Unless enclosed in double quotes, the expansion of mytt($(command)= ) is >> + split on mytt(IFS). In contrast, and contrary to bash and ksh, un= quoted >> + mytt(${ command }) and its variants are not split unless the >> + mytt(SH_WORD_SPLIT) option is set. > > That's not quite accurate, though. > > % print -l ${|reply| reply=3D(a b c)} > a > b > c > > It's only ${| REPLY=3D...} and ${ command } that always behave like sc= alars. Ah, you got me. I only tested out ${ command }, and I overlooked that var in ${|var| command } could be an array. --=20 vq