[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: funsub questions
From: |
Andreas Schwab |
Subject: |
Re: funsub questions |
Date: |
Thu, 14 Dec 2023 10:47:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Dez 13 2023, Greg Wooledge wrote:
> If you'd like to read the contents of a file into a variable, the
> "read" and "readarray" (aka "mapfile") builtins are usually better
> choices anyway. $(< file) would only be useful if you want the entire
> content in a single string variable, which is a questionable idea in
> most programs.
For interactive use, $(< ...) is convenient and less verbose than the
alternatives.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
Re: funsub questions,
Andreas Schwab <=
Re: funsub questions, Kerin Millar, 2023/12/13