A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1091 
====================================================================== 
Reported By:                Mark_Galeck
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1091
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Mark Galeck 
Organization:                
User Reference:              
Section:                    2.10.1 Shell Grammar Lexical Conventions 
Page Number:                2375 
Line Number:                75895-75896 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2016-10-18 11:55 UTC
Last Modified:              2016-10-18 15:55 UTC
====================================================================== 
Summary:                    Some "WORD tokens" do not have "the associated
command"
====================================================================== 

---------------------------------------------------------------------- 
 (0003428) geoffclare (manager) - 2016-10-18 15:55
 http://austingroupbugs.net/view.php?id=1091#c3428 
---------------------------------------------------------------------- 
I think the problem here is in the definition of the term "execute" (XBD
3.155):

   To perform command search and execution actions, ...

This appears to constrain the use of "execute" only to simple commands, but
there are many places where the standard talks about the shell "executing"
commands that are not simple commands.

Brace group may not be able to have any expansions associated with it, but
there are other non-simple commands which can, such as case, for, etc.  I
don't think most readers of the standard would have a problem understanding
what it means for the shell to "execute" this command:

    for i in $list; do echo "$i"; done

(if they ignore XBD 3.155).  When $list is expanded, the "associated
command" is the for command. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-10-18 11:55 Mark_Galeck    New Issue                                    
2016-10-18 11:55 Mark_Galeck    Name                      => Mark Galeck     
2016-10-18 11:55 Mark_Galeck    Section                   => 2.10.1 Shell
Grammar Lexical Conventions
2016-10-18 11:55 Mark_Galeck    Page Number               => 2375            
2016-10-18 11:55 Mark_Galeck    Line Number               => 75895-75896     
2016-10-18 14:48 geoffclare     Note Added: 0003419                          
2016-10-18 15:04 Mark_Galeck    Note Added: 0003421                          
2016-10-18 15:28 Mark_Galeck    Note Added: 0003425                          
2016-10-18 15:55 geoffclare     Note Added: 0003428                          
======================================================================


Reply via email to