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.2 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 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 C0DF729A29 for ; Mon, 15 Jan 2024 01:04:14 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705277054; b=Y6aeej1yIs38HWrMyb4KHJopej1VCMZSoPk6ofsP1kRdNn2q71+auHGrPlvoO1is55bzCm2yBr p0KCp1w/wn3vM0VKfXlc+0eRUbYEhuFrl0QWs9jBvb2iF7520hjiDvBQLTYNQ39KsiDyRt7pAw hWeYqlmSysOLOa3RZYiBQHwvPSL7RwJE92nGSigL8NNoTk75dxy5RqUCpeFZk306fzrw8JOBX9 R2uulJtnbIiFjx2BF1ozwuDC8qReJ9XC1FeL+TbgKhcKuGu8Bf+0XRJ/88haLhI1Zyk8+ET3V7 7EHBbexWnEKB2hjURsQxRIhT+6nfjJMOiOBVyXrdc83Qqg==; 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=1705277054; bh=ms64UBeiJBxKmpzTORfhhVl8Ex8Z5HKe9O6aKs+9ffQ=; 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=WQ10OLk4j0npXh+pFTQgGc36SrktSEF7xCAudpNrEo/eWyom/x2vFXijm82Psx98QM901nRI7+ 3V5q25CshHkErZsNO0p6Tsa+XLDDefm0qRNHcmomY9kEI+9WFFBxcWybX2ZU9aLS9aNt/WbDlI 6XsSqIMKEf8xTIlHxqkK+3Y/lUgFPimgSbl2M2ekBPl9j4LtRpWnn4efD//BOUZTuZoJQwdz01 B7xS8MJ8CsD761/cOatcBeQLByOnR8rdX810UM0nJoTPGpcbAHiByR93fl3U30aolU/rLvbf2Z zKf8qDlGLZmo9RVKZYGM3trjllfXHTJfmPMa6iZhr5L4cw==; 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=QQQAGUL8f2LpnSNh1ooqdfIQ23/RHgi7QjLoBNX8b+Q=; b=ltyNawhZZfwMQOko8J+0Y+7buA JiuUq9MpdqmSY2Z+wjHCJLnanAYnwTzYB/3rLGp/I7k9sssAjWYd1AgGgI4Tr9TafxCwuZTkSdTxu zn1C28IHE/OH+2ZCzl2xd4xQrP62FENamMAOmbnYvsF9tJQwSaE2gos6F3G3JKIH4oNTJk2G+cOWr mgI0x7Mv5a4v36eGVLt4HeMYfkDlVw1RihzBASCmM1147pdzbaVVEm3w4xA03sDAwAjMW6VRqXBBD fB0Ypc6lLcLTr11zezwSIjvTExN8gKucoKRDYzzLSNGcSVU+rvH539OrrzLCzpoPZJil5GqNhqesP yGDGglrw==; Received: by zero.zsh.org with local id 1rPASc-0000yL-1O; Mon, 15 Jan 2024 00:04:14 +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]:44355) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rPARw-0000DY-Uj; Mon, 15 Jan 2024 00:03:34 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0S7A0E5UN04ZCQ00@mta02.eastlink.ca> for zsh-users@zsh.org; Sun, 14 Jan 2024 20:03:31 -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 PARurysYTAItUPARvrEUna (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sun, 14 Jan 2024 20:03:31 -0400 X-Authority-Analysis: v=2.4 cv=NJYTuW2g c=1 sm=1 tr=0 ts=65a47653 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=8pif782wAAAA:8 a=4GchRr1_esPBMTX7dPEA:9 a=QEXdDO2ut3YA:10 a=ZLGELXoPAAAA:8 a=xHIoXsMmxcQZo-73HeEA:9 a=zTit-cxJzwGJ2LJW:21 a=_W_S_7VecoQA:10 a=CFiPc5v16LZhaT-MVE1c:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejtddgudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeftdetudeihffgieffiefhueelgfejteetvdeitddvhfelkeeiueetledtfeevkeenucffohhmrghinhepfihikhhiphgvughirgdrohhrghenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------bmuok0QdfySbWJA0y2s7IPKF" Message-id: <4b475319-ef78-4d46-a62c-27c3b0af3ea4@eastlink.ca> Date: Sun, 14 Jan 2024 16:03:30 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Slurping a file Content-language: en-US To: zsh-users@zsh.org References: <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> <7b20b425-59b2-466d-a9aa-a2768d1d4633@app.fastmail.com> From: Ray Andrews In-reply-to: <7b20b425-59b2-466d-a9aa-a2768d1d4633@app.fastmail.com> X-Seq: 29479 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. --------------bmuok0QdfySbWJA0y2s7IPKF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-01-14 12:13, Lawrence Velázquez wrote: > https://en.wikipedia.org/wiki/Time_complexity#Table_of_common_time_complexities Yikes!  I'm sorry I asked.  Thanks tho, but that's scary stuff. >> Seems to me that >> at a first estimation one might want: >> >> 1) Full exact copy -- byte identical including blanks, newlines, >> trailing stuff and naughty chars. slurp. > Reading an entire file into a variable is often -- not always, but > often -- a red flag that suggests the entire script is poorly > designed. It uses more memory and makes it difficult to feed the > data to external utilties (although the latter is less of a concern > with zsh in particular, which relies on external utilities less > than other shells do). I appreciate  the historical context.  Much is understandable when you know the history. > Elision of empty values is a property of unquoted expansion. It > has NOTHING to do with variable types. I'll take another look, thanks.  I may have gotten my wires crossed. > --------------bmuok0QdfySbWJA0y2s7IPKF Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2024-01-14 12:13, Lawrence Velázquez wrote:
https://en.wikipedia.org/wiki/Time_complexity#Table_of_common_time_complexities
Yikes!  I'm sorry I asked.  Thanks tho, but that's scary stuff.
Seems to me that 
at a first estimation one might want: 

1) Full exact copy -- byte identical including blanks, newlines, 
trailing stuff and naughty chars. slurp.
Reading an entire file into a variable is often -- not always, but
often -- a red flag that suggests the entire script is poorly
designed.  It uses more memory and makes it difficult to feed the
data to external utilties (although the latter is less of a concern
with zsh in particular, which relies on external utilities less
than other shells do).

I appreciate  the historical context.  Much is understandable when you know

the history.

Elision of empty values is a property of unquoted expansion.  It
has NOTHING to do with variable types.

I'll take another look, thanks.  I may have gotten my wires crossed.



--------------bmuok0QdfySbWJA0y2s7IPKF--