A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1194 
====================================================================== 
Reported By:                steffen
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1194
Category:                   Shell and Utilities
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       steffen 
Organization:                
User Reference:              
Section:                    vol. 3: sh 
Page Number:                3239 
Line Number:                108848 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2018-04-23 18:10 UTC
Last Modified:              2018-04-24 09:07 UTC
====================================================================== 
Summary:                    sh: mention historic function body in APPLICATION
USAGE
====================================================================== 

---------------------------------------------------------------------- 
 (0003994) joerg (reporter) - 2018-04-24 09:07
 http://austingroupbugs.net/view.php?id=1194#c3994 
---------------------------------------------------------------------- 
name () { list;}           Define a function which is refer-
                                enced  by  name.  The body of the
                                function is the list of  commands
                                between  {  and  }. The { must be
                                followed by a space. Execution of
                                functions is described below (see
                                Execution section). The {  and  }
                                are  unnecessary  if  the body of
                                the  function  is  a  command  as
                                defined above, under Commands.

Is in the AT&T sh manpage.

But the text in the POSIX standard is not related to that but rather to the
ksh function definition:

      function identifier { list ;}
         Define a function which is referenced by identifier. The
         body  of  the function is the list of commands between {
         and }. See Functions.


Since the POSIX text mentions only the version with a compound statement, I
see no reason for a need to add more hints. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2018-04-23 18:10 steffen        New Issue                                    
2018-04-23 18:10 steffen        Name                      => steffen         
2018-04-23 18:10 steffen        Section                   => vol. 3: sh      
2018-04-23 18:10 steffen        Page Number               => 3239            
2018-04-23 18:10 steffen        Line Number               => 108848          
2018-04-24 09:07 joerg          Note Added: 0003994                          
======================================================================


Reply via email to