help-bash
[Top][All Lists]
Advanced

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

Re: any plans for command substitution that preserves trailing newlines?


From: Christoph Anton Mitterer
Subject: Re: any plans for command substitution that preserves trailing newlines?
Date: Tue, 01 Jun 2021 23:03:17 +0200
User-agent: Evolution 3.38.3-1

On Tue, 2021-06-01 at 11:46 +0800, konsolebox wrote:
> As an alternative, you can use `IFS= read -rd '' var < <(cmd)`.

Yes, but as written originally, I'd at least try to avoid this because
it's probably not portable.

Thanks,
Chris.




reply via email to

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