help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash bug?


From: Leonid Isaev
Subject: Re: Bash bug?
Date: Tue, 24 Jan 2023 15:03:48 +0000
User-agent: Mutt/1.13.4 (2020-02-15)

On Tue, Jan 24, 2023 at 09:21:47AM -0500, Greg Wooledge wrote:
> If you want to send an input stream without adding a newline to it, you
> can use < <(printf %s "$var") instead of <<< "$var".

BTW, is there any advantage of using mapfile vs read here? For example:
-----8<-----
I-akula-++-09:59-~-> IFS=" " read -ra a <<< "1 2 3"
I-akula-++-10:00-~-> printf "x%sx\n" "${a[@]}"
x1x
x2x
x3x
----->8-----

Sincerely,
-- 
Leonid Isaev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]