[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to get the output of a function without an extra bash
From: |
Eli Schwartz |
Subject: |
Re: Is there a way to get the output of a function without an extra bash process? |
Date: |
Sun, 10 May 2020 19:13:02 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/10/20 6:45 PM, Eli Schwartz wrote:
> On 5/10/20 6:43 PM, Peng Yu wrote:
>> Hi Chet, Could a new feature be added to bash so that no exec is
>> needed in the case of $(cmd). Maybe introducing a new syntax like $(:
>> cmd)?
> This syntax already does something.
An alternative syntax would be to implement ksh's
var=${ listcmd; }
which has symmetry to the other uses of () vs {} for command lists.
This should be safe to implement in bash as it's currently a "bad
substitution"...
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
signature.asc
Description: OpenPGP digital signature
- Is there a way to get the output of a function without an extra bash process?, Peng Yu, 2020/05/10
- Re: Is there a way to get the output of a function without an extra bash process?, Eli Schwartz, 2020/05/10
- Re: Is there a way to get the output of a function without an extra bash process?, Peng Yu, 2020/05/10
- Re: Is there a way to get the output of a function without an extra bash process?, Chet Ramey, 2020/05/11
- Re: Is there a way to get the output of a function without an extra bash process?, Koichi Murase, 2020/05/11
- Re: Is there a way to get the output of a function without an extra bash process?, Peng Yu, 2020/05/11
- Re: Is there a way to get the output of a function without an extra bash process?, Chet Ramey, 2020/05/12
Re: Is there a way to get the output of a function without an extra bash process?, Chris F.A. Johnson, 2020/05/10