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, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26745 invoked from network); 3 Feb 2021 01:10:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Feb 2021 01:10:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612314652; b=T1+4dSUandXIcDULq8LTLjmNyXcDd/XYhqeIOgZp9okg9y3NNUHTYQ+u9AyiGihWsoR4xitUss lk/nwMn9lzn3Es6BI5Y6waFyMWSmDyI03dQonR/xBLczoLziaeogOkRNYdqF/R/Y65BvlXxHfv v0eo2bZ+FTA/V6WyYsxtfT66GUdkBC/NB7DQkI0mkKnsUrQAFqDaE+htdorlYyU7/fpqvGnXFk lX3AsmVRYHwE+zHO/gjy2ua8Y/tJrsEVST4roKgBe082/lfKscm79XjnkHDO4ijG5cog26hp99 R3UgJF4JCPXTDvE6tgt8nvrdId+jZ0jA8mrHgQzEt8GRzg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612314652; bh=rebhyxC4zu1YYRkZsxzBpthzlSyOloHNghEq3pLTcc8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=wA0HC3YU7atzz/ZnkMavpi9Hh8OxxoFs1cr09NhAAVnl2CVzTeo+MvsQ/21T9MhWt8CzarTVit yQp4G9s9hQLdegdqPvaniw47yS0aDn3Hhm8tfwdrvNDWkE53e+e4TfCxLcGqomUhrLvlqW6wjX FFmR3DvL9lchWEVrgQqNC4PKiBwJKoC4RZomBapMAzyvWwpGZx++lOWycOxMK/USDey19BKlfI IA6vnF2J73/e+CKtyCp5UDlvbbf7ED3DCDvViVr+aDx8FYIMGtOFgEeIGRf+2aZnsZpzmoMaae o97od/sIUmoDHuh10KGjKozLdKfVYWkhwgDSQ5WLo1NTUw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=nLzg9i4lb9nAEVQHAz6y4F9sieravzsZGNtZ+ubUrto=; b=z3OzbPfrszjijeJd5Jjyfmxi5R FFqyu5DQZn9+buiynQfSxsOBajr3+RWT64c3QScpstuWSBrwzYUhQB1l3EO6j801D8L8oBmbug9Va PP5F5VNaKM3Hrf8gM+DVNGOSO5g2f9Pxmwqbdxkhf9cIZ1/PN+9gc0CUKe317b1LovC6IAy1NIwPc Q53Vzfhq6mOLIftdc3Ut+srSzutnYlMPDR11lCkxT0tOHkEyEPz+gfa/4YdZO8FpJ4RawOfvqj+I4 W3qU+mQ3WSwBIjHUjjWlO9gevJbyUiu3POss0hOtatHEB5+7P4t0o4+BiMgPocIw83/kaDEs46LMn 3BBkgbIQ==; Received: from authenticated user by zero.zsh.org with local id 1l76gy-0001Tm-Bi; Wed, 03 Feb 2021 01:10:48 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:34757) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1l76gV-00017B-0G; Wed, 03 Feb 2021 01:10:20 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QNX00673H9LCD91@mta01.eastlink.ca> for zsh-users@zsh.org; Tue, 02 Feb 2021 21:10:17 -0400 (AST) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id 76gSlJXwLsAqK76gSlX7NH; Tue, 02 Feb 2021 21:10:17 -0400 X-Authority-Analysis: v=2.4 cv=W6f96Tak c=1 sm=1 tr=0 ts=6019f7f9 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=xfDyCOH-AApsbbE-zfIA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedugdefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeekvdeuuefffefhvdeuieetffdvtddvjeegueejkeeiudehieetieehgeetvdfhfeenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: array with newlines preserved as literal text To: zsh-users@zsh.org References: <52dba8e4-2538-7c96-ecd5-66e017ab2b8e@eastlink.ca> From: Ray Andrews Message-id: <99675ebd-fb20-d50f-babf-5abfce0090fb@eastlink.ca> Date: Tue, 2 Feb 2021 17:10:16 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26453 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: Archived-At: On 2021-02-02 11:26 a.m., Roman Perepelitsa wrote: > > This is fine. You can verify that the content is as expected: > > print -r -- $array2 Bloody hell, it was the missing '-r' there :(  the array was fine, just improper output.  Past time I knew that. > Use `typeset -p var` to see the value of parameter `var`. > > typeset -p array2 Thanks I knew there was something like that but I forgot it.  That's what happens when I don't code for over a year, I forget everything.  I've been busy columnizing grep output.  the 'column' command doesn't quite do it because it takes all those '\n' that you might find in code literally which is why I had to sort that out. |$ g ,w4 'msg "\n' g,* || || ||g,32,pplain in place......................120.. ! [ "$pplain" ] && actionmsg "\n$msg"|| ||g,32,pplain in place......................168..    ! [ "$pplain" ] && actionmsg "\n$msg"|| ||g,33,better formatting and fix rregexp....121.. ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,33,better formatting and fix rregexp....169..    ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,34,light edits..........................104.. ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,34,light edits..........................152..    ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,35,interim..............................106.. ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,35,interim..............................154..    ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,36,g_column in place interim............107.. ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,36,g_column in place interim............155..    ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,37,g_columns in place and looks good....108.. ! [ "$bbare" ] && actionmsg "\n$msg"|| ||g,37,g_columns in place and looks good....156..    ! [ "$bbare" ] && actionmsg "\n$msg"|| | Thanks Roman