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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, 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 1BDFA21479 for ; Sat, 13 Apr 2024 20:09:07 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1713031747; b=IlicGDzc3eCgqGQWOcR9W+XCtE8oZhaqqMU8CvLNTNQEdVGyKO4izonoJiH/CJ7JNZWmhkumu2 sUSv1flMINxnZVjswQzKmc+UiWmQH1Kx0v4LS5oEge3xYREKT08PVxcbTSKdkvSzn+SSPdGshf NeY+u7QvH8DYFMocKVyZM/nU0yHFhP4ckytBPS51GtEpj6BFPm96mgD4Rgl8poeuWaIHKAFBC1 cNBGQA4udSaGGEoGCk0ZOBl51qDzOs8WEqlUGNKOrd70Ky3TGoi85h7j7sE1ytlJc8xSjv/GSB /Esvo7mqOMBEkHLy1db3G3kiyk1wqm3L94mQi6ENtU1w5g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; 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=1713031747; bh=a3c52VtviyKojjcsbCtAz3n6pLnwjlrDkQPFLr7tuq8=; 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=amLIIrKohixFb5L710NZFTrYPaOb9jiQMXdSKeZj8FQ35FLI85KAA86dhy4lLnXrqgJngdh/vs +xZnw9rOhPpOUJwX4rd8X2Pp+zL8MIdQCPGgi+KCZdKGCjDKA7ayf8G8M9VzkEljS2NR5BEWz0 8DY02ZR4z+j8dlBd9fDG301dE62PHtx2/ZiivXupD6Kq9PIjLu2BSg/LjvZGjwHUXoot9jwRsu qjXGbESPR2Sj1FeCjhidlw0cwrWY3g1eas0G8VH5Z/2VWi0oe3HtUn8Mb4OkEJtnPGKp6oNsVM aXF2DKUOxkVf9ifeQigouhQtLtJdxTH4x1GHoHtzyd+4gA==; 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=TitpMvXwQapHD57wQU9HLvQiXTSy/aW8Rz2LkkuyYOc=; b=UoUKOHgNpqlymtbDzPsPNKwzNx 5oWpA3BoYsNMIz/rGdgKPjjq4g2ojKR+RKqcg8ONiGiNUU6GRJzGM96a48WBOkmOVHLLT9pKU4xYM Thus1/Yu/2P2nDLD23QPoHp994MX8cOYcAq/3iApwToGeZOXho//+U8vzGfF6n2gw4G0genhek7hB micfLBzITQ/oxF2wHsfqn1bnyQ+tnoNBu35Yxfr/dq/oTf2Am/fzArVawvBGAbiLvjX30SULquCZ0 827/LpokZobugrgTfgQgJICRJnq44wI0E2EuGUkD4kfo3Cmqt4iwkT+8pvPs6a1bY907lkNYUwjxW oW/1h93w==; Received: by zero.zsh.org with local id 1rvhoI-000KZR-DS; Sat, 13 Apr 2024 18:09:06 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:35521) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rvhnm-000Jqx-9X; Sat, 13 Apr 2024 18:08:36 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0SBW0FA8K7O6S8N0@mta02.eastlink.ca> for zsh-users@zsh.org; Sat, 13 Apr 2024 15:08:33 -0300 (ADT) 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 vhnkrulCpAimnvhnkr1WDT (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 13 Apr 2024 15:08:33 -0300 X-Authority-Analysis: v=2.4 cv=Q8Rx4J2a c=1 sm=1 tr=0 ts=661aca21 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=pGLkceISAAAA:8 a=ueaPT7K858OBdWe9XgIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=eRWRazwjSwxawtnSjyMA:9 a=Hs4mTxDbkJAg8OfU:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeiiedguddvgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhephfettefhveeguedvleeggfdvvedufeeuudffvdfgledvvdfgtdeigeeuueelieefnecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddruddungdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------C2F87fUpMPEPQHIXLGIuzg07" Message-id: <0a0b9ec3-4661-4386-9fbf-b3152a46001e@eastlink.ca> Date: Sat, 13 Apr 2024 11:08:31 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: triviality regarding $# counts To: zsh-users@zsh.org References: <97793422-1543-4ba6-b52b-ff93eba03ab1@eastlink.ca> <7ba17739-6024-439b-a4a7-dd88fddfa2e4@eastlink.ca> <7333cf23-1fe7-4b3d-a7c1-f07697c5f062@eastlink.ca> <1e53a3f7-9bdb-45ae-81c7-7d0ec1a6a541@app.fastmail.com> <3cc19e86-e953-4e2f-9e57-30ff84f15fdf@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 29806 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. --------------C2F87fUpMPEPQHIXLGIuzg07 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-04-13 10:27, Mark J. Reed wrote: > Small followup I meant to type but didn't: > > On Sat, Apr 13, 2024 at 1:19 PM Mark J. Reed wrote: > > redline *'\nddd=( "${(@f)aaa}" ) ... it seems like a lot of > trouble to copy the array as it is.'* > > > That comment confuses me; you aren't copying the array as it is at > all! You've gone from *aaa, *which has one element, to *ddd > *having 8 elements. That's a far cry from "copying as it is". > Ah, but Mark, I figured all that out by the bottom of the post.  At that point I was still laboring under 'visual thinking' .  I dare say I'm straightened out.  I had thought that 'split on newlines' meant 'add \n's where needed to demarcate element boundaries'.  It's actually sorta the opposite -- there is no demarcation character and \n's will in fact be removed.  But I'm still not happy with the dollars.  I had thought that "  $'...'  "  was grammatical but we have " ' ' "  -- meaning an empty line -- without the leading dollar, so the closest thing I could pattern was that they replaced the newlines.   If anyone on the planet can get it wrong, it's me. --------------C2F87fUpMPEPQHIXLGIuzg07 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-04-13 10:27, Mark J. Reed wrote:
Small followup I meant to type but didn't:

On Sat, Apr 13, 2024 at 1:19 PM Mark J. Reed <markjreed@gmail.com> wrote:

redline '\nddd=( "${(@f)aaa}" ) ... it seems like a lot of trouble to copy the array as it is.'


That comment confuses me; you aren't copying the array as it is at all! You've gone from aaa, which has one element, to ddd having 8 elements. That's a far cry from "copying as it is".
Ah, but Mark, I figured all that out by the bottom of the post.  At that point I was still laboring under 'visual thinking' .  I dare say I'm straightened out.  I had thought that 'split on newlines' meant 'add \n's where needed to demarcate element boundaries'.  It's actually sorta the opposite -- there is no demarcation character and \n's will in fact be removed.  But I'm still not happy with the dollars.  I had thought that "  $'...'  "  was grammatical but we have " ' ' "  -- meaning an empty line -- without the leading dollar, so the closest thing I could pattern was that they replaced the newlines.   If anyone on the planet can get it wrong, it's me. 


--------------C2F87fUpMPEPQHIXLGIuzg07--