On 3/12/14 1:57 AM, Filipus Klutiero wrote:
> Package: bash
> Version: 4.3-2
> Severity: minor
> X-Debbugs-Cc: bug-b...@gnu.org
> 
> According to the manual, either the function keyword or parentheses should
> be sufficient to define a function:
> 
>> Shell Function Definitions
>>
>>
>>  A shell function is an object that is called like a simple command and
>> executes a compound command with a new set of positional parameters.
>> Shell functions are declared as follows:
>> name () compound-command [redirection]
>> function name [()] compound-command [redirection]

This is a documentation error.  When the `function' reserved word is used,
and () doesn't appear, the braces are required to avoid ambiguity.  It's
always been like this.  I will clarify the documentation.

Chet

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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to