[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: new syntax for command substitution to keep trailing newlines?
From: |
Koichi Murase |
Subject: |
Re: RFE: new syntax for command substitution to keep trailing newlines? |
Date: |
Wed, 27 Jan 2021 13:57:05 +0800 |
2021年1月27日(水) 12:15 Clark Wang <dearvoid@gmail.com>:
> For example, we can use ${( ... )} which is now wrong syntax.
There was already a discussion to use ${ command } for no-fork command
substitutions as ksh does.
> From https://lists.gnu.org/archive/html/help-bash/2020-05/msg00077.html
>
> > According to Eli Schwartz, ksh supports `var=${ listcmd; }`. Sine ksh
> > can do it, this features should be doable in bash?
> [...]
> It's a low priority; if someone wants to take a shot at implementing it
> before I get to looking at it, I'd be happy to merge it in.
In ksh, ${( ... )} is a valid construct of this kind (though it seems
equivalent to $(...)), so your suggestion actually conflicts with this
possible future syntax.
--
Koichi
- Re: RFE: new syntax for command substitution to keep trailing newlines?, (continued)
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/29
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/29
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/29
- Message not available
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/30
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/30
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Léa Gris, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, pepa65, 2021/01/27
Re: RFE: new syntax for command substitution to keep trailing newlines?,
Koichi Murase <=
Re: RFE: new syntax for command substitution to keep trailing newlines?, Clark Wang, 2021/01/27