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 08D8E22BEF for ; Thu, 15 Feb 2024 15:37:15 +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-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lKEtBCzdfJpCarY2zNCezWj6lxBDYK45EcbfJ9HeNFM=; b=Yn/c4x9OSpmZfZUrf9U6Il8w0f l2WjlJyMuFRxIbFGMALHmk5zt8IHVUllTgOwO0USNzmxUMTDW/TYtxVrSuPkyzPjl9RhbvCkW7k7P aeOqhO4y95rouWfwaXBDYhRuxmFe+tvwtChq4BcDnYnBOY5AGSqQ12apiW5QwKfZdF5IuFH66B4Og kGIK0KNM7CvjcV/jlQ1WfT0jmjZoKKfkwRatRoIqfecsnyX+4xnocH4SzEpkq1nLgkUFNusFdZ9vR JZdiqBM37pz0yBYO2BsqUyS4T6HKYbGbqqV/zSKUYaoDkC9TJ4JLHlIl/bffZ0b+v8uTXtjxXoq26 w/Mg5msg==; Received: by zero.zsh.org with local id 1racrT-000GzQ-Su; Thu, 15 Feb 2024 14:37:15 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1racq5-000GFr-Qg; Thu, 15 Feb 2024 14:35:50 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id C36741200069; Thu, 15 Feb 2024 09:35:48 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Thu, 15 Feb 2024 09:35:48 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgrfihr vghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenucggtf frrghtthgvrhhnpeelkeehjefgudefgeekueegudeghfevvdeljeehieeuffehveejgfeh tefhudevhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduhedu keejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsth hmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 90DBB31A0065; Thu, 15 Feb 2024 09:35:48 -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: In-Reply-To: <58e3e416-1e9f-424c-b9af-b96b93dc9938@eastlink.ca> References: <0b3cf56b-004d-4a9f-a643-a53ccb50e278@eastlink.ca> <58e3e416-1e9f-424c-b9af-b96b93dc9938@eastlink.ca> Date: Thu, 15 Feb 2024 09:34:57 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: Counting characters in command output? Content-Type: text/plain X-Seq: 29676 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 14, 2024, at 11:30 AM, Ray Andrews wrote: > So really there is a logical problem too. We have another 'invisible' > transformation. We 'have' quarts but liters are what's counted, yes? > >> I would in general have expected *foo $(bar) * to behave identically to *baz=$(bar); foo $baz*. > > Yes, it would be non-negotiable in algebra. a=b; b=c; ergo a=c. The shell language isn't algebra. This is hardly the only case in which the substitution principle doesn't hold without putting in some extra work (which I'm omitting here for demonstration purposes). % foo=(a b c) % printf '<%s>' $foo; echo % bar=$foo % printf '<%s>' $bar; echo -- vq