A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1097 
====================================================================== 
Reported By:                Mark_Galeck
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1097
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Mark Galeck 
Organization:                
User Reference:              
Section:                    2.10.2 Shell Grammar Rules 
Page Number:                2376, 2379 
Line Number:                75919, 75920, 76068, 76069 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2016-10-20 15:24 UTC
Last Modified:              2016-10-21 08:32 UTC
====================================================================== 
Summary:                    Shell Grammar rule 4 is nonsense that conflicts with
existing implementations
====================================================================== 

---------------------------------------------------------------------- 
 (0003447) geoffclare (manager) - 2016-10-21 08:32
 http://austingroupbugs.net/view.php?id=1097#c3447 
---------------------------------------------------------------------- 
I agree there is a problem here, but the suggested solution is not right.

Rule 4 is needed for this case:

$ case foobar in
> esac)
-bash: syntax error near unexpected token `)'

Maybe there is a way to fix it by rewording rule 4 to distinguish between
pattern) and (pattern).  If not, we'll need to change the grammar somehow
(perhaps by introducing a pattern_or_esac production). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-10-20 15:24 Mark_Galeck    New Issue                                    
2016-10-20 15:24 Mark_Galeck    Name                      => Mark Galeck     
2016-10-20 15:24 Mark_Galeck    Section                   => 2.10.2 Shell
Grammar Rules
2016-10-20 15:24 Mark_Galeck    Page Number               => 2376, 2379      
2016-10-20 15:24 Mark_Galeck    Line Number               => 75919, 75920,
76068, 76069
2016-10-21 08:32 geoffclare     Note Added: 0003447                          
======================================================================


Reply via email to