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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, 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 109D929F50 for ; Thu, 15 Feb 2024 16:29:55 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1708010995; b=NFV6Ugw2u9PTwHqlh+JEpOjfY06/8gh8gGvo7ppAoJaff/0ltpGn2a9w/7XSGIGh4Ptc0/tlVk lmmOVM4AvyOAaejLjQAgw1+dOrwnMBzer75Zdsw6T7Z8uTTuhbsJcH5FwYcS4/Jao/4xvw1uwH qthJBGNiURzgSJcruUFvEtoNodhFRVW/+Lc8rpZXjgKEud/KSWYO+T4lzryFIcPmdqnvkEgJNm EyDxTGIUzztdmXIx9abcR/8tiGKD1Evroc4yV568SLhTsGOkaeaC1USBjFTfLo+dLs1ZR+rMaU hMY07Q4VfOsQcZwq9d4f0KC7xNpmhqGL6HuIaFVsSeOBtA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1708010995; bh=EyM1UF06vF3uNVscPSeP87Qlq21i8U/3D4uH2Hn3M+8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=HcLIn9FVWXtr3Y3tT4FUGPTVX8lFo2J+PQYUx5JQhST4MJ5pLMX3wI3kXsIeiPMF6PgA6bq8UJ 84eSZnOIMk9dIBDvS3nhOc+U/J3LzWiYXZZSaCCpyO3lyJAGMjOjoQx+6eLpMr3jl2OVcoh9re USkP76ujEMryoHxBAl96j8EPHDROMIV+U7q/4CFnm+OmU51etI6Fa61LNzfnzQix6tkwoKFtQU w+u6JMJuGpW7Pbq04qjcpMap7FJs60u5ZY5no9ykZt+D5PdZoJY0kfiVgwvmEKE3Cw83040c2j cltRyE2/xsxA/oiEkh9PUWJSiHiiiLfgTsT07q53ztVkxQ==; 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:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9o7s4pxYlv8KWz/hixkyYD2S8d1se4QqUgVKD0KaD5I=; b=GWUnaMuyqZzuTDy/96YKub6Ycr 43xRIGrfhM5y4FQQyxDtm0mCNqCVGAFGmhnrO8+Xl83VNsa6uD7sMticUi4jHRnCXLaIfqj9n30T/ XhoeNlQ0Bgdqlj0gywv8fzayVWLDFcoZ9J0a8psevXz7WqpxRYzlsJr0m0WDUIxV8NJHtWIeDqpb+ 1aY0bOUQaj0t8JhhaQWirN8tqpHU4R6Ar4KoR3uuZePjufdI04dyO5L0iz8cpVC+r9mt6Vu3Dbyme uivwfNYL9bajjxdGwFM9iOMLO7lKV8lNQbGdyLfTp38n53YQNj6TuBtVaUBU40hDHLkIExDZjrKWU 8jLWjIIQ==; Received: by zero.zsh.org with local id 1radgQ-000KSj-Q6; Thu, 15 Feb 2024 15:29:54 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:43899) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1radfr-000Jmx-Sp; Thu, 15 Feb 2024 15:29:21 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0S8W24KAGLGXZ5I1@mta03.eastlink.ca> for zsh-users@zsh.org; Thu, 15 Feb 2024 11:29:18 -0400 (AST) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id adfqr3DseYTKjadfqr703p (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Thu, 15 Feb 2024 11:29:18 -0400 X-Authority-Analysis: v=2.4 cv=dL0Fm/Zb c=1 sm=1 tr=0 ts=65ce2dce a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=-uiZvkEEAAAA:8 a=3MeCdpiB3e-0xwd0jysA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=cznzxhKDNoMA:10 a=ZLGELXoPAAAA:8 a=ycJ2v4izarYsC5jJ:21 a=_W_S_7VecoQA:10 a=IgViAHGcSVGt8234vC9p:22 a=CFiPc5v16LZhaT-MVE1c:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtgdejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepuedvvdeiueevgffgtdeuheehvefftdegueeuudfhffduieevieevieeukeeikeeunecuffhomhgrihhnpehprhhoughutghinhhgohhsshdrtghomhenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------cooMDTHpVfqDsiNBRFkV3PaO" Message-id: <0e4efb91-0a73-4da3-a7a1-d5bce58ae914@eastlink.ca> Date: Thu, 15 Feb 2024 07:29:17 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Counting characters in command output? Content-language: en-US To: zsh-users@zsh.org References: <0b3cf56b-004d-4a9f-a643-a53ccb50e278@eastlink.ca> From: Ray Andrews In-reply-to: X-Seq: 29678 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: This is a multi-part message in MIME format. --------------cooMDTHpVfqDsiNBRFkV3PaO Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-02-15 06:30, Lawrence Velázquez wrote: > I would push it further: The worst-case perception would be one of ignorant arrogance. Compatibility is not tradition, but calling it so suggests a dismissive, uncharitable belief that there are no plausible reasons for it -- only a stubborn preference for How Things Used to Be. People rarely respond well when they think they're being called sclerotic morons. On the contrary, compatibility is deference to tradition almost by definition.  However it does not follow that tradition is to be deprecated or dismissed -- long standing traditions often stand long because they deserve to, and compatibility is a value in itself -- one breaks compatibility only if some practical advantage clearly merits the added confusion of incompatibility.  In this case Mark had an issue, Roman agreed that the default was not optimal, and I'm agreeing with them.  Your hostility seems overwrought. Voting is a poor mechanism for building consensus, in any case. > https://producingoss.com/en/consensus-democracy.html#when-to-vote Interesting! % foo=(a b c) % printf '<%s>' $foo; echo % bar=$foo % printf '<%s>' $bar; echo Ok, but: % foo=(a b c);printf '<%s>' $foo; echo; bar=($foo); printf '<%s>' $bar; echo ^ ^ ... it is established that the assignment must be forced to array and will default to scalar, no? Sure, it's not exactly algebra but it is bedrock zsh grammar. And wasn't it Mark's original point that command substitution should likewise default to scalar? Anyway these probings of mine bother you so perhaps I should say nothing. --------------cooMDTHpVfqDsiNBRFkV3PaO Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-02-15 06:30, Lawrence Velázquez wrote:
I would push it further: The worst-case perception would be one of ignorant arrogance.  Compatibility is not tradition, but calling it so suggests a dismissive, uncharitable belief that there are no plausible reasons for it -- only a stubborn preference for How Things Used to Be.  People rarely respond well when they think they're being called sclerotic morons.
On the contrary, compatibility is deference to tradition almost by definition.  However it does not follow that tradition is to be deprecated or dismissed -- long standing traditions often stand long because they deserve to, and compatibility is a value in itself -- one breaks compatibility only if some practical advantage clearly merits the added confusion of incompatibility.  In this case Mark had an issue, Roman agreed that the default was not optimal, and I'm agreeing with them.  Your hostility seems overwrought.  Voting is a poor mechanism for building consensus, in any case.
https://producingoss.com/en/consensus-democracy.html#when-to-vote
Interesting!

	% foo=(a b c)
	% printf '<%s>' $foo; echo
	<a><b><c>
	% bar=$foo
	% printf '<%s>' $bar; echo
	<a b c>

Ok, but:

% foo=(a b c);printf '<%s>' $foo; echo; bar=($foo); printf '<%s>' $bar; echo
                                            ^    ^     

<a><b><c>
<a><b><c>

... it is established that the assignment must be forced to array and will default to scalar, no?  Sure, it's not exactly algebra but it is bedrock zsh grammar.  And wasn't it Mark's original point that command substitution should likewise default to scalar?  

Anyway these probings of mine bother you so perhaps I should say nothing.


--------------cooMDTHpVfqDsiNBRFkV3PaO--