help-bash
[Top][All Lists]
Advanced

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

Re: Why can redirection be combined in an assignment statement?


From: Peng Yu
Subject: Re: Why can redirection be combined in an assignment statement?
Date: Mon, 10 May 2021 14:10:49 -0500

> Hm...  I think that
>
>         a=$(cat) <<<"hello"
>
> is exactly this.  You may replace <<<"hello" by <somefile if you wish.

Did you test it? This just hangs there. I don't think it is useful.

-- 
Regards,
Peng



reply via email to

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