[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell Grammar man page function definition
From: |
Mike Jonkmans |
Subject: |
Re: Shell Grammar man page function definition |
Date: |
Mon, 1 Mar 2021 09:23:31 +0100 |
On Sun, Feb 28, 2021 at 05:06:37PM -0500, Chet Ramey wrote:
> On 2/28/21 12:38 PM, Mike Jonkmans wrote:
>
> > The manual page says:
> > If the function reserved word is used, but the parentheses are not
> > supplied,
> > the braces are required.
>
> That text has been there since the earliest versions of the man page. It's
> not strictly true any more, but it's a reasonable guideline. Maybe I'll
> change the language to a recommendation.
I think deleting
, with one exception: If the function reserved word is used,
but the parentheses are not supplied, the braces are required
would suffice.
> > But it seems that from all the compound commands,
> > only a subshell is not possible.
>
> Subshells work fine in the current version of bash.
Nice! Thanks, also to the others to point that out.
I did not see that in the changelog (master-branch) though.
But the 'culprit' is clear from the next post ;)
Regards, Mike Jonkmans
- Re: Shell Grammar man page function definition,
Mike Jonkmans <=