> I see this in bash(1):
> 
>     SHELL GRAMMAR
>         ...
>         Shell Function Definitions
>             ...
>             [ function ] name () compound-command [redirection]
> 
> and do not see the version you show without the parens.

Read the text following the definition.  It says, in part:

        If  the  function reserved word is supplied, the
        parentheses are optional.

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/

Reply via email to