bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell Grammar man page function definition


From: Chet Ramey
Subject: Re: Shell Grammar man page function definition
Date: Sun, 28 Feb 2021 17:06:37 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.0

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.

But it seems that from all the compound commands,
only a subshell is not possible.

Subshells work fine in the current version of bash.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]