Re: RFE: new syntax for command substitution to keep trailing newlines?
From:
Clark Wang
Subject:
Re: RFE: new syntax for command substitution to keep trailing newlines?
Date:
Wed, 27 Jan 2021 16:40:30 +0800
On Wed, Jan 27, 2021 at 12:14 PM Clark Wang <dearvoid@gmail.com> wrote:
> For example, we can use ${( ... )} which is now wrong syntax.
>
> $ v=${( command ... )}
> bash: ${( command ... )}: bad substitution
>
Or keep it similar to $(cmd), like:
$(& cmd ...)
$(; cmd ...)
$(| cmd ...)