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 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 A6EEF26224 for ; Mon, 6 May 2024 05:45:13 +0200 (CEST) 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:To:From:Date: References:In-Reply-To:Message-Id:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2/6lWSzTRUV2sFssvz08cVfaVSUDXyV9rLYiyyTLLow=; b=QhoQ4GsUnY2h768xCJJZVFcUGp bT8bbY3c/tLZE6+bg1dCRWPB0YB7BmrszssKwtUcwrazR199h/q5vxWhBK7Qmrn2Svvcn35CqQ3/7 6w39hGdQbNOGQbNvrbh1wPzCSwLQkK+pVhHbc8SzuwueZSRWnr7VKe6roWI4ZLLilHU9bA4M2hR03 MQigL5P7mNFX7nxO+XHXmxA4CZfURVQFEfMScDD7jtgm3KH8HVT0uAdaQFOwA2gmJZMowRPPJpDuG LJi2v2/xAeda0G5YOgQW6hFI0szx01TnmXxUkQ0zZvm8BYDyhhK9eXh0TMDU1DfMcdhQh7ZqsFK7v 2XhASXwg==; Received: by zero.zsh.org with local id 1s3pHt-0004qJ-6w; Mon, 06 May 2024 03:45:13 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1s3pHO-00047j-E6; Mon, 06 May 2024 03:44:42 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id EB9311200032 for ; Sun, 5 May 2024 23:44:40 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sun, 05 May 2024 23:44:40 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvhedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderreejnecuhfhrohhmpefnrgifrhgvnhgtvgcugggvlhojiihquhgviicuoehlrghr rhihvhesiihshhdrohhrgheqnecuggftrfgrthhtvghrnhepieelveehfefghfffieehtd eigedvgfekffetjefgteeltdeivdeivdetueekgeeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruhhthh hpvghrshhonhgrlhhithihqdduudehudekjeejtdegqdduudelvdejfeekhedqlhgrrhhr hihvpeepiihshhdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9F7F831A0065; Sun, 5 May 2024 23:44:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-437-gcad818a2a-fm-20240502.001-gcad818a2 MIME-Version: 1.0 Message-Id: <97e18012-2aff-40d0-82a6-7b8efd46d270@app.fastmail.com> In-Reply-To: <6cfb08f8-ee3d-40fa-be88-cb10882bc1d0@eastlink.ca> References: <8d597bb5-39c8-4544-ad1a-907a79bf4cba@app.fastmail.com> <086da1ef-79dd-448d-b463-01895df2866f@eastlink.ca> <58741215-7c41-4230-8eb5-6556bd969140@app.fastmail.com> <6cfb08f8-ee3d-40fa-be88-cb10882bc1d0@eastlink.ca> Date: Sun, 05 May 2024 23:43:09 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: zsh-users@zsh.org Subject: Re: nesting issue Content-Type: text/plain X-Seq: 29909 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 Sun, May 5, 2024, at 9:51 PM, Ray Andrews wrote: > There will be an algorithm I'd just like to know what it is. It's not that simple. You're conflating the sorting method with the locale's collation rules. Under Debian's en_US.UTF-8 locale even straight lexicographic sort can be surprising: % foo=(1, 1a,); print -lr -- ${(o)foo} 1, 1a, % foo=(1,a 1a,a); print -lr -- ${(o)foo} 1,a 1a,a % foo=(1,b 1a,b); print -lr -- ${(o)foo} 1a,b 1,b I'm afraid I can't explain this; perhaps someone else can. If it bothers you, consider temporarily setting LC_ALL=C (or C.UTF-8) while you sort. -- vq