From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28255 invoked from network); 12 Jan 2024 20:33:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Jan 2024 20:33:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705091600; b=l1BfVOFFWnIfbNAWyccRbNkpXlc36fXj30hWtp58+XfDUq73a+/oPYajF10vmuFvF/3ZTXEEIh s3P12oIfW7YTzJ3Ldx7Pvg//9QtyHBKFi1t0P7V7AM1WFK+zQmNVnI/H+YqD2H0EfbIqolXOZl hnHo3egCnTargbsBmlzG3teYB7R4p+fSMtDF6watu9iYoSLVDiMpAEr+N9phgNTGPikMTcV1J5 Hr1R6g+QXRTO2Sb3wEYRJiVyMSJbqc5x5pKKmd6dxT+tOznTo80EcAsE0rjjRlgxl4pquxP5F9 tBcdpS05hNumSN0b5skcE2EA1ocW3X7V+CVMqQEbKSZqvg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; 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=1705091600; bh=cXmvmbcrLlGC9rB0QFej3uyS9z/tFCvQstChdy5tjDQ=; 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=OMxsmLooIj3sn4mPE+Gx398DIkJzEuNw3tkptgVCGRmp0o5kckrYOMK/vZ/FKreh+iZh7IyHCY 9wkAetwY+kjP98OohsEHpuzwKLaGCBkqTkJhLyVy2iEKsjYhMihAcvQo9F2qAl4o1Pc1d5L0bB Y3KYfCo4J1n6fcS0ZsnCD16oYuPxTUvQvw0LoXTqfpyWlM+T1q/sQsqcaGGQ2gHiDuIdNpp5or Www0JTqya1mWBSKPaJkBkps1U4Kgj67GO6EP2Ia38mMGbMhKyJjUuhRvm6W1Vf6oHLyj/jczeu qzU+vzBR0ezOlPVN1SSwNe0nx4KCG3+vpYKSstiLJrekRQ==; 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=kENF9qyBMGz5YFaZ9rZWDhNt3liYl+20Qu9J23CykmE=; b=iz8N9ENExBhtIF01DKyQwnVFXV aWde5k8/xU9ZtWh2rSCI42P9ukxeoqdRpHcqf8FIHS1bmXo4r5rG6A/9viTPWnqkHiONjiXwA93tX c994UOB8+K1GkyOImdmZQ/znQ+XEiILTiPXz/3dmg9GleR549EVzrIc0iqGdjGraWWm4rALueyrTj nNEB3KbTv6B3Ax1ulaX7D7tLtXDpqDLUqARz8mblSL9AIdpUIY6gTDgI6ypCNTp+4QkOmkb05DA+5 2QEbMRHc85+zP/tNb46DECC2qvXyLf/u5hHtucIZY7uIcv0ejhwlAwWGH5x+IqwV3SGyZwpPKRP2G zPEiRXrA==; Received: by zero.zsh.org with local id 1rOODQ-000Gyh-1V; Fri, 12 Jan 2024 20:33:20 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:43405) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rOOCo-000GHS-Ur; Fri, 12 Jan 2024 20:32:44 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0S7627MW80ZRO4Z0@mta04.eastlink.ca> for zsh-users@zsh.org; Fri, 12 Jan 2024 16:32:41 -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 OOCnrs6Y2AItUOOCnrDf6n (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Fri, 12 Jan 2024 16:32:41 -0400 X-Authority-Analysis: v=2.4 cv=NJYTuW2g c=1 sm=1 tr=0 ts=65a1a1e9 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=tpmjhbAbZAZHM1uDHDgA:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=IC2Dh9mdHREe5QipPfgA:9 a=fUzRDaXb91kricca:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeihedgudefiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhephfettefhveeguedvleeggfdvvedufeeuudffvdfgledvvdfgtdeigeeuueelieefnecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddruddungdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------6HMX4vDRWcCvHpFE5Gv10OAX" Message-id: <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> Date: Fri, 12 Jan 2024 12:32:40 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: more splitting travails Content-language: en-US To: zsh-users@zsh.org References: From: Ray Andrews In-reply-to: X-Seq: 29451 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. --------------6HMX4vDRWcCvHpFE5Gv10OAX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-01-12 12:03, Bart Schaefer wrote: > This was sent privately to me but pretty obviously intended for the list. I got a private copy from Mark, but with a cc to the list. > > > Well, here's where the exception to that "usually" comes in. > cut ... I'll need time to digest all this ... Yesss.  When it's captured as one element I see the newlines because are all there in the single element! ... it looks split but it isn't !! So I think I'm getting closer to what I want but actually I'm further way.     % vvar=("${(@f)"$(


On 2024-01-12 12:03, Bart Schaefer wrote:
This was sent privately to me but pretty obviously intended for the list.
I got a private copy from Mark, but with a cc to the list.


Well, here's where the exception to that "usually" comes in.

cut ... I'll need time to digest all this ...


Yesss.  When it's captured as one element I see the newlines because are all there in the single element! ... it looks split but it isn't !! So I think I'm getting closer to what I want but actually I'm further way.

    % vvar=("${(@f)"$(<testfile2)"}")


1 /aWorking/Zsh/Source/Wk 0 % vvar=("${(@f)"$(<testfile2)"}") ; print -l "$vvar[@]"; print "\n ... and the number of elements is: ..... $#vvar \n Ta-Taaaa :-)
"
one two
three

four

five six seven


eight

 ... and the number of elements is: ..... 9
 Ta-Taaaa :-)

... and that's not as Byzantine as it looks: " (@f) : read: "include blank lines, and split on newlines (including empty lines) "   ... Yes?

Yes, more invisible differences.  Old printout and new printout look identical but internally they're chalk and cheese.



--------------6HMX4vDRWcCvHpFE5Gv10OAX--