[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: any plans for command substitution that preserves trailing newlines?
From: |
konsolebox |
Subject: |
Re: any plans for command substitution that preserves trailing newlines? |
Date: |
Tue, 1 Jun 2021 11:46:38 +0800 |
On Mon, May 31, 2021 at 11:46 PM Christoph Anton Mitterer
<calestyo@scientia.net> wrote:
> I wondered whether there were any plans to implement proper support for
> command substitutions that preserves trailing newlines?
As an alternative, you can use `IFS= read -rd '' var < <(cmd)`.
--
konsolebox