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 5264 invoked from network); 13 Jan 2024 04:55:37 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Jan 2024 04:55:37 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705121737; b=iWTwgjdYRHVbVWNyOBtqfnPdyx9MBeHrsvuiWQiTdyG3Ikh1wvSqYv8V8QY4CqVhalP6m+zySj HCBq5rxjymhZt3S2dwmHbPuW7Ta7XGTGsnaSh5mzzB68pW9AFH6WQMYGdt4jFeFPxHgpdEF9YY NvXTfIQMtA+FognAg7NhSQMsjebATOd9EkmJS0kHc7stoGYp7278syQENIcqOMctW3uC3szNxe vQKLV8RpsGQ/xELDMSo3W2TEYYWY7vmEn+sHHGk3Y7pqyCMvyHV1+eRQ68k2nRSJyv5/i+YFr2 UXIXlwsb3YRBSwSJV2lTmiqi0bTWRRafb+zX7UQUm0SWQw==; 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=1705121737; bh=oGWW1n1pnXDkO1V3A++CwDEHsBrvWml5CPlakTqdKcM=; 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=hiduJDJr27TXBBWztdSKivTfRD/H2yk4mgUkxhwbSIOGW+At0WoR1znA85ntRpnTtJeZmkvORK FB0W3MCKKxR6902KJVI33fBxetvNpzxG0rv7Om91XGRZrPNkswVZPT02F+7HTtHGFzaNzcZGiW OKibF7IzghXaSnZtPizrf8zhoTwR6xpO8XVCtMGLmBG28FDXUHu9M/s+sN3UEalgBLKtBCMJ19 l5YQnwFMoMm6dU2Qa9cC4/cPkls+S9CFmWijIWEJFWlGbrkgbsNsla4zCBDt7CjVKHt4cfEJwB IiHXgAg4VhGU7LpykuXqR5Op2kzFOxjApWEvkevxAfPyJA==; 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=+w9vJEFRu20+4Jxu6aCNnPAaeR8IJAaKn7TSdtaETHU=; b=NNu2hfMtlfXS76xfSBWPEsDni8 Qd0FnEsrDKfTBiNQftpS/pGI8OU6+PV5hxYmN3aKJJBEr+lxM4aSGzc0DukwGSRLAc2doI9V5bMxW CYP4QJKo6zR+w6r5PmjIfYnzYMURYjKlGC8JfWb8l6YVE9z7cqA3vII/AOdITY8KtrTngWiN/o/A7 BS6AGRZwz1L/Q7BKlaiHhrk7jtF8B2XeMvBPDg7QBHoUJFyyClOYi9WjY1I+3Q5DDyqTq5KTJVSuu yrV6BcT/DT1Y2qjI9UOAgIaztJFCZleDAew2ULxyAT/IABtIDJ8yqQnJrtKlGcRGQzW+cO0wbt6Mw IoSGPwRQ==; Received: by zero.zsh.org with local id 1rOW3U-000Gd2-KV; Sat, 13 Jan 2024 04:55:36 +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]:54897) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rOW2r-000FvY-VN; Sat, 13 Jan 2024 04:54:59 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0S762GGFKOAUIU80@mta04.eastlink.ca> for zsh-users@zsh.org; Sat, 13 Jan 2024 00:54:56 -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 OW2prtTgLAItUOW2qrDq2E (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 13 Jan 2024 00:54:56 -0400 X-Authority-Analysis: v=2.4 cv=NJYTuW2g c=1 sm=1 tr=0 ts=65a217a0 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=ad_g8Is-zXycOIniO4kA:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=53QfKzZ08SID5oZHpmMA:9 a=E3ilqtgRDv6-toFk:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeiiedgjeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------QovQyZ2J3k980IBRPE9Az7Y8" Message-id: <970c7767-3f26-4cc9-a4f1-a7d62eca4ded@eastlink.ca> Date: Fri, 12 Jan 2024 20:54:55 -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: <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> From: Ray Andrews In-reply-to: X-Seq: 29462 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. --------------QovQyZ2J3k980IBRPE9Az7Y8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-01-12 19:59, Bart Schaefer wrote: > The outermost parens say that you are ASSIGNING TO an array, not WHAT > you are assigning to it. Ah!  Output, not input.  Obvious now that you mention it. > But ... aaa is not the name of an array, after the foregoing "read". Or if it somehow is, we're back to an array of one element where that element has all the newlines within. Well, Roman will be glad to hear that I was just about to do a typeset -p on both versions to see the difference. I'll have to think about it, but for now what matters is just that I see it correctly, even if that's via a cheat -- it shows the array as it is even if via a somewhat strange route. 0 /aWorking/Zsh/Source/Wk 0 % typeset -p vvar typeset -a vvar=( 'one two' three '' four '' 'five six seven' '' '' eight ) 0 /aWorking/Zsh/Source/Wk 0 % typeset -p aaa typeset aaa=$'one two\nthree\n\nfour\n\nfive six seven\n\n\neight' I won't forget again. > --------------QovQyZ2J3k980IBRPE9Az7Y8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2024-01-12 19:59, Bart Schaefer wrote:
The outermost parens say that you are ASSIGNING TO an array, not WHAT
you are assigning to it.

Ah!  Output, not input.  Obvious now that you mention it.


> But ... aaa is not the name of an array, after the foregoing "read".
Or if it somehow is, we're back to an array of one element where that
element has all the newlines within.

Well, Roman will be glad to hear that I was just about to do a typeset -p on both versions to see the difference.  I'll have to think about it, but for now what matters is just that I see it correctly, even if that's via a cheat -- it shows the array as it is even if via a somewhat strange route.


0 /aWorking/Zsh/Source/Wk 0 % typeset -p vvar
typeset -a vvar=( 'one two' three '' four '' 'five six seven' '' '' eight )

0 /aWorking/Zsh/Source/Wk 0 % typeset -p aaa 
typeset aaa=$'one two\nthree\n\nfour\n\nfive six seven\n\n\neight'

I won't forget again.



--------------QovQyZ2J3k980IBRPE9Az7Y8--