[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.
- Re: any plans for command substitution that preserves trailing newlines?, (continued)
Re: any plans for command substitution that preserves trailing newlines?, Christoph Anton Mitterer, 2021/06/01
Re: any plans for command substitution that preserves trailing newlines?,
Christoph Anton Mitterer <=