Martijn Dekker <[email protected]> wrote:

> > Such a text is however missing in POSIX.
>
> It is not missing. As previously shown (and you removed from the quoted
> text), the POSIX definition of a "function" incorporates the POSIX
> definition of a "Compound Command". And that says:
>
> { compound-list ; }
>     Execute compound-list in the current process environment.
>
> (see link given previously).
>
> "In the current process environment" seems pretty clear to me.

The standard does not claim that a function has to be executed the same way as  
a compound ist would have been executed, or do you see such a claim in the 
standard?

The way I read the standard just mentions that the function body in a function 
definition is parsed like a compund list.

Jörg

-- 
 EMail:[email protected]                    (home) Jörg Schilling D-13353 Berlin
    [email protected] (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to