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.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 CFE372A541 for ; Tue, 16 Jan 2024 21:15:45 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705436145; b=OG7g3AA2pjatT8UaEK142Qo0Nu11ZGqaPMsq2KyWD0iqUcNc78tMcDpRfgHgaUVfZmOVpbNu+2 hv8UcC+fplKcEMTl7PZFZD339iM3xHSf6jLjlmhtOWdCJpoP/bEL1QnIy13OOYAetlBFX/wN91 J6EONje3vDZvpQj7iib0n1x8fcpCPipw1rwYCxytYOBaMAHHumg0jIle6vGJ9fk4acXBS05SvX QNtayynyMzUNh6ry+r0YjfEUPQgcmgNMBWLun9a63VRimEpFEyJkGV7Q4uaRt1HbE8ra2qy2w4 MiTyBfCEQx4SSu8hIAbDQHyX4kbQm4H9QVLBzlm05cDBDw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f179.google.com) smtp.remote-ip=209.85.208.179; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1705436145; bh=t880vwW1Nwho57k6ZxzJgwiPUTjcyzKo9aPeiBjkIh8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=g0ZR9iuRisvfT+KB3F5eyVWS7v+dzia2Hf1f7HRiMqDqrBGLZ7cBEhE1zxKYQAtOvfvxpZaCfZ TH976dY48ynzEXjqzVGuG2zUxSfIP6X8SfAkRhr2GPMH5GyvfcRi3Omr3J8/FxrhqgR5QNXUaF pSqcv+2g09xkFHWbNbHiA8ITmwSD/QQHlkrl2b6eEyd539OfmTE30uhE5YKorPt+clIIYRnBW8 FnYG+KhEgMFvx8QJECupj+Y9eAb7aXWuJR6kFvfaUJ4O4Rbzf8l5/ZCIYPBtYzui3N44g0EN8e G1Hv6WDegNraYnUYaYmnWFiSG+8gCqgZm8gV9jKWLIjWJw==; 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:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=mbrRluf3CVLx3Tw5KdiJpXJMF3p02VuYbrDnKb2MuT0=; b=RDIdg7OKM3IqjQnc0KuW1TzxoT iSmnv2Du7D6RkvNQgLm3+8DFV+jWOFxSCMYP62yce9AJ9M7JB4t9m7Y+4MedWRdhPAGFpgYHFBvfN G7HCTxWkfGs0A9vfJzI7gUXRoUnYEJxoI4/gQt3W5ZBQ/xU39gGLIuQmgQuZdaqTiYoz9yEWhU8sk YrWXGgD2cZ2Z0qRN+0L6vpKUCnEyU1Km7+M23HbGCC3JTH+dHzgfkAeuHWxcgDTHBXEAxkQEVbXJv rHJVO5pEveLfl7ZeuXNfoll+x8wSsEV9e9Ec2TW4szfjOZa8MsHm+BmuaQdCKZKvanxj0NK3mYv29 dMGNc83w==; Received: by zero.zsh.org with local id 1rPpqb-000Ixj-5z; Tue, 16 Jan 2024 20:15:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f179.google.com) smtp.remote-ip=209.85.208.179; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f179.google.com ([209.85.208.179]:57403) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rPppk-000IGt-Cy; Tue, 16 Jan 2024 20:14:54 +0000 Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2cdb50d8982so34074601fa.2 for ; Tue, 16 Jan 2024 12:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705436092; x=1706040892; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mbrRluf3CVLx3Tw5KdiJpXJMF3p02VuYbrDnKb2MuT0=; b=SlsBVOlHQBe4FtSr8rFQqqKl+HVHVwbqVh0uwfWYWTeFN/GIiut/UvAi+LTXQLRN5j V1477rUHYv/Qp2BmPkIfkjG8MOgR2REnOLT49znPEcBRxjrLvDeCh0npMIPvJWijcfgP q5omayJAf6Y0SkA6Jbt3eWXfQ1RHW5exxvazQORSgOFE/g4l16SeQ1yl3zIiRx9rlXLy ZSXLetSXU+THDqD/s7tpCVZ7paduFFlgTCU09UhaS3CK2iQjo+SQbm12uh/3e4wlrx6B k0eQTm153X2hfExVv61aX5ybQUui7DLjYUVkfe5OR2fsAKaSw3rinDDg4+b0ymtD3ubn CQgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705436092; x=1706040892; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mbrRluf3CVLx3Tw5KdiJpXJMF3p02VuYbrDnKb2MuT0=; b=sI7EkXzi3lBZNwBjCtTAET/rjwmUaHE9HQymNiAGSimAEIZvtg/uhOji9tg6XWtMjT aWqHJn5FEcqHHkZdCh04DU2w11I5CA6tuhUJNVlvJEZGvoFA7IKh73xvbIiFGG7ziyQ8 yTHaVpZTiMIyzXAoyud1nMPN4yKTy4AidcUYv9G6jXriZkl2TeaXqA4hIQMEwA4YTSia DMejhFkaxFAU48hKvRDFr00VaukcfkIMpSWjtfmcG6gd1D83J6Nn/GktpBg6rJjoEvSY XnZ2pSs+BAVcZXLyk+oy4Jv4qQCeyKj9F/0eyC4tTORe5POOhgcjVQedyVzEISK+dwai 2hQA== X-Gm-Message-State: AOJu0YyDTjo2S3nHQq6LFwj/kqlxDFlx6vdvoL3hDWTLHVBOUEB9zWEo v7MWIw9qG/m6hTy8juEqqhR8qGssuNCDKuWGifapd+l5 X-Google-Smtp-Source: AGHT+IF+sLZNZYurd/SBarLqKGlB18Euj07ZsaXPYAPuCMLkm06eEKFS7wDpJL1JDkRbJjFmj90Vw9L/xT1t0Hh2cT4= X-Received: by 2002:a2e:86da:0:b0:2cd:36ff:4d76 with SMTP id n26-20020a2e86da000000b002cd36ff4d76mr3667919ljj.76.1705436091480; Tue, 16 Jan 2024 12:14:51 -0800 (PST) MIME-Version: 1.0 References: <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> <954cdcf5-5cf5-4734-9040-f937950c4af4@eastlink.ca> In-Reply-To: <954cdcf5-5cf5-4734-9040-f937950c4af4@eastlink.ca> From: Roman Perepelitsa Date: Tue, 16 Jan 2024 21:14:40 +0100 Message-ID: Subject: Re: Slurping a file To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29504 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: On Tue, Jan 16, 2024 at 9:08=E2=80=AFPM Ray Andrews wrote: > > > On 2024-01-16 11:57, Bart Schaefer wrote: > > On Mon, Jan 15, 2024 at 12:53=E2=80=AFAM Roman Perepelitsa > > wrote: > >> Perhaps zslurp? > > Sure. I was going to suggest "zlurp" but it looks odder written down > > than thought about. > Nothing wrong with something light-hearted just so long as it's > intuitive what it does. 'zlurp' is a bridge too far IMHO. The thing > makes an exact copy, what's the word for that? Sorta why I liked 'xact' > or 'xcopy' -- but that's taken, so 'zcopy'. When I see "slurp", I know exactly what it does: reads a full file into a string. If you don't get the same immediate reaction, you really should: google "file slurp" and see that it's the way this facility is called in many programming languages. Now that "slurp" is taken by an unrelated command, "zslurp" is an obvious alternative to go along with zstat, zselect, zcalc, etc. Note that it's zstat and zselect and not ztat and zelect, hence zslurp and not zlurp. Roman. P.S. When I see "xcopy", I also know what it does but it's unrelated. Also, "copy" for a file is a very different operation.