Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slurping a file
- X-seq: zsh-users 29506
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: Slurping a file
- Date: Tue, 16 Jan 2024 21:43:44 +0100
- Archived-at: <https://zsh.org/users/29506>
- In-reply-to: <044f3b8b-f3f1-42f1-9088-459ab827982f@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- References: <ca1761f1-6d8f-452a-b16d-2bfce9076e25@eastlink.ca> <CAA=-s3zc5a+PA7draaA=FmXtwU9K8RrHbb70HbQN8MhmuXTYrQ@mail.gmail.com> <CAH+w=7bAWOF-v36hdNjaxBB-5rhjsp97mAtyESyR2OcojcEFUQ@mail.gmail.com> <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> <CAH+w=7Y5_oQL20z7mkMUGSLnsdc9ceJ3=QqdAHVRF9jDZ_hZoQ@mail.gmail.com> <CAA=-s3x4nkLST56mhpWqb9OXUQR8081ew63p+5sEsyw5QmMdpw@mail.gmail.com> <CAH+w=7Yi+M1vthseF3Awp9JJh5KuFoCbFjLa--a22BGJgEJK_g@mail.gmail.com> <CAN=4vMpexntEq=hZcmsiXySy-2ptXMvBKunJ1knDkkS+4sYYLA@mail.gmail.com> <CAH+w=7aT-gbt7PRo=uvPK5=+rR3X-PE7nEssOkh+=fxwdeG_7w@mail.gmail.com> <CAN=4vMq=E4s2a0sDFq-Mc8=pVzPnYOM9NaTmesgXQqi+O+mHpw@mail.gmail.com> <CAH+w=7bZqKwJT-D8BMRe+Smo70iUzAV3SCFFnG-9HSY=XGMzHw@mail.gmail.com> <CAN=4vMqU1CAMEEuL9dT0D3eqRSdSJE+cRdjr1WNOMsESYoPGNQ@mail.gmail.com> <CAH+w=7aBqAcdkY11Nnfze2JX7A9-tMoBFLQ4b0KjCjVH+aP6oA@mail.gmail.com> <954cdcf5-5cf5-4734-9040-f937950c4af4@eastlink.ca> <CAN=4vMqfBZgdikpDtOx7cTPO6ouoUuiikm9Qm2V_7oM+SvNb9w@mail.gmail.com> <044f3b8b-f3f1-42f1-9088-459ab827982f@eastlink.ca>
On Tue, Jan 16, 2024 at 9:38 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2024-01-16 12:14, Roman Perepelitsa wrote:
>
> 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
>
> So it is. Not 'zlurp' but 'zslurp' -- that fixes it. Besides, it's your baby and you should make the call.
I cannot take credit for it. The implementation is trivial and given
my late arrival to zsh I'm sure there are many implementations that do
the same thing already, likely even by the same name. That said, even
they didn't invent anything of importance: it really is a trivial
thing.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author