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: Andreas Kusalananda Kähäri
Subject: Re: Why can redirection be combined in an assignment statement?
Date: Mon, 10 May 2021 21:23:03 +0200

On Mon, May 10, 2021 at 02:10:49PM -0500, Peng Yu wrote:
> > 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

Hmm. Yeah, that was less of a success.

-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.



reply via email to

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