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,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A 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 AFC762B11D for ; Sat, 13 Jan 2024 20:09:28 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705172968; b=BbYggJ0GRgyUWmB3V8zWo4pJs9nW2BCehnQC/L46tgIbgzUH369EWeIPrAQKj7C12EPIMFVGRc wtHwQucidkxSNoLppl+HnjuZVZglmx/XpsxOMx3/BSfeyc0RzgGBuSHmPD0tCFGIh5Uvo87xos onc8x0+L7ShWUXQFzYmoMF9malCO8hLpWOhy2QP7Yngu1mrkynHoEgzrk1rBQ9e1SKpsNSe2FM OnyI2hqo3V6Iip4OUqKMw0tuPMNGmbLjJ8COUIMiS7BkLdHCi85R/CVCiy5GPsBomZPLLp0stq kpy+3hfnXqv1dtAJj8KzQVkInR6tEoBqdMwKmXO91lzR5w==; 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=1705172968; bh=F/krOstuEHtNCYs54U1FgNGJq4wf3x6B8acLAPajkpg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=S/4QGkIrQuPsw3980R6pFfiuu1e53vbywkxd6W3KJIre7dsde1ESy93lIeJkJQsLKitdMmZbb7 GhrSrCuFHOOsFFswJ3KvTivMDs0BHEuEMgjtKdykY84cIrVoaARs/MwMC23uSxVff1/ds0r69M 9Ci56IJxnd6tNWGqubzVhHeD66ete/tYjmw5eSqhY9YGXzqUJacYN2cmqsuDB83mzYWKDARPDd dta7MTliHhpvHkknVUflT1T8U56Q9OeMayGUvP47qecO3pneW1gnHClqFN/SrlNwUSVUhfn8lL 6Rd88FuDimwADhjiYKLRfrEecM8a7EZXJaTTS9o8QwKHtA==; 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:Cc:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=EEJPenQcW4Rx4COw3malc0aN/YakJtFJabJxxz0kdso=; b=BFRcqGlRGzDLqIiyUc16sQyYrh RmZMpKYU2PKifDaZDzYSq+2ku6mGdW+95Nv6ok1sQawHBpWxup3JQcHNgN61wEXHSurbFKNtUUxC8 o5eW6BJAj3juVFkpz0DinGR2Y4Mltt2jKx1YTlxHnEleGFOeyzmOAjRa0IZlTDbPlaoYPY+3f9n17 6EaC4HjO7KtFJd6qf43CXp2p7jTySO/SKHtyXxEMWJr3CiKeUSGWtUXGirkxfdEyiLsy85A2cHDIv 0A/TjI/NsqSJNx0TWi8xr8eDebp61HZzTmc7ZEWkXKUmPK2cPw8on+4nBgIbeI2UQ0cpmhFRrbG2z 9ODQ1h9g==; Received: by zero.zsh.org with local id 1rOjNo-000HkS-6x; Sat, 13 Jan 2024 19:09:28 +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]:33609) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rOjMw-000H20-LJ; Sat, 13 Jan 2024 19:08:35 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0S772DE8KRSVTSV0@mta03.eastlink.ca> for zsh-users@zsh.org; Sat, 13 Jan 2024 15:08:33 -0400 (AST) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id OjMurbQqstqGEOjMvrFARm (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 13 Jan 2024 15:08:33 -0400 X-Authority-Analysis: v=2.4 cv=Zvoraf3G c=1 sm=1 tr=0 ts=65a2dfb1 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=6wK7QliaAAAA:8 a=NcAO0v0KYyItm-rLrHcA:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=TgY2mkhV5OyPac9vkeoA:9 a=d_FLTk6X7uwnQZWE:21 a=_W_S_7VecoQA:10 a=8FTjF_hQWiXd_WofnoJt:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeijedguddvudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegoufhushhpvggtthffohhmrghinhculdegledmnecujfgurheptgfkffggfgfuvfevfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepheeujeegffffieeiheffheehvdfhueetieekheehheeujeduvdeiveelteeulefhnecuffhomhgrihhnpehgihhthhhusgdrihhonecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddruddungdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepfedprhgtphhtthhopeerredprhgtphhtthhopehstghhrggvfhgvrhessghrrghsshhlrghnthgvrhhnrdgtohhmpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -51 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------iMd7cgjuA0Zk390oVzrKsQ0B" Message-id: <1ef0e668-be0a-4742-869d-95085e34f035@eastlink.ca> Date: Sat, 13 Jan 2024 11:08:32 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: more splitting travails Content-language: en-US To: Bart Schaefer Cc: zsh-users@zsh.org References: <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> <970c7767-3f26-4cc9-a4f1-a7d62eca4ded@eastlink.ca> From: Ray Andrews In-reply-to: X-Seq: 29467 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. --------------iMd7cgjuA0Zk390oVzrKsQ0B Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-01-13 10:22, Bart Schaefer wrote: > That would be tilde, not (P). I was about to explore the difference.  I have them conflated in my head at the moment. > http://rocky.github.io/zshdb/ > Never really tried it myself, but the author has sought advice from > the lists on occasion. I'll check it out.  Tx. So, bottom line of this thread is that things have to be sent forward with the right massaging to make sure blanks are not removed: > "${(@f)vvar}" < ... trying to retrieve the blanks after the fact is impossible cuz they're gone.  Only thing left to wish for is someway of making it the default that all assignments will include *everything*.  Oh, and don't be fooled by a single element that happens to have newlines within it -- they might look the same but they ain't.  > % read  read -rd '' < testfile2 aaa < ... is a false friend because '$aaa' will be a single element.  Likewise > : ${vvar2::=$vvar} < is a false friend because it looses blanks.   Seems a verbatim exact assignment is not really provided, which seems very strange.  But Roman has shown a solution. --------------iMd7cgjuA0Zk390oVzrKsQ0B Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2024-01-13 10:22, Bart Schaefer wrote:
That would be tilde, not (P).
I was about to explore the difference.  I have them conflated in my head at the moment. 
http://rocky.github.io/zshdb/
Never really tried it myself, but the author has sought advice from
the lists on occasion.

I'll check it out.  Tx.

So, bottom line of this thread is that things have to be sent forward with the right massaging to make sure blanks are not removed: > "${(@f)vvar}" < ... trying to retrieve the blanks after the fact is impossible cuz they're gone.  Only thing left to wish for is someway of making it the default that all assignments will include *everything*.  Oh, and don't be fooled by a single element that happens to have newlines within it -- they might look the same but they ain't.  > % read  read -rd '' < testfile2 aaa < ... is a false friend because '$aaa' will be a single element.  Likewise > : ${vvar2::=$vvar} < is a false friend because it looses blanks.   Seems a verbatim exact assignment is not really provided, which seems very strange.  But Roman has shown a solution.

 

--------------iMd7cgjuA0Zk390oVzrKsQ0B--