View Issue Details

IDProjectCategoryView StatusLast Update
00000441003.1(2008)/Issue 7Shell and Utilitiespublic2013-04-16 13:06
Reporterkhoroshilov Assigned Toajosey  
PrioritynormalSeverityCommentTypeError
Status ClosedResolutionAccepted As Marked 
NameAlexey Khoroshilov
Organizationlinuxtesting.org
User Reference
Section2.10.2 Shell Grammar Rules
Page Number2329
Line Number73599-73601
Interp StatusApproved
Final Accepted Text0000044:0000081
Summary0000044: else_part in shell gramar missing compound list after "Then".
DescriptionThe section 2.10.2 Shell Grammar Rules reads:

else_part : Elif compound_list Then else_part
                 | Else compound_list
                 ;

One can see that there should be Else or Elif right after Then. This is wrong.
Desired ActionWe propose to modify this rule as follows:

else_part : Elif compound_list Then compound_list
                 | Elif compound_list Then compound_list else_part
                 | Else compound_list
                 ;
Tagstc1-2008

Relationships

has duplicate 0000054 Closedajosey else_part in shell gramar missing compound list after "Then" 

Activities

Don Cragun

2009-06-25 10:09

manager   bugnote:0000080

Last edited: 2009-06-26 06:36

Originally reported by khoroshilov:xxxxxxxxxxxxxxxx
Thu, 10 Jul 2008 22:02:30 +0100 (BST)
with Subject: Bug in XCUd5.1 2.10.2 Shell Grammar Rules

Transcribed by Don Cragun from xcubug3.txt ERN 1

Submitter tag "LVC-S0679"

Page and Line numbers have been modified in this report to refer to the 2008 edition of the standard.

Don Cragun

2009-06-25 10:14

manager   bugnote:0000081

Last edited: 2009-10-09 15:42

Interpretation response
------------------------
The standard states the requirements for the shell grammar , and
conforming implementations must conform to this. However, concerns have
been raised about this which are being referred to the sponsor.

Rationale:
-------------
None.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
In 2.10.2 Shell Grammar Rules:
Change from


else_part : Elif compound_list Then else_part
                 | Else compound_list
                 ;

To:

else_part : Elif compound_list Then compound_list
                 | Elif compound_list Then compound_list else_part
                 | Else compound_list
                 ;

(Target for TC1)

Issue History

Date Modified Username Field Change
2009-06-25 09:56 Don Cragun New Issue
2009-06-25 09:56 Don Cragun Status New => Under Review
2009-06-25 09:56 Don Cragun Assigned To => ajosey
2009-06-25 09:56 Don Cragun Name => Alexey Khoroshilov
2009-06-25 09:56 Don Cragun Organization => linuxtesting.org
2009-06-25 09:56 Don Cragun Section => 2.10.2 Shell Grammar Rules
2009-06-25 09:56 Don Cragun Page Number => 2329
2009-06-25 09:56 Don Cragun Line Number => 73601-73602
2009-06-25 10:09 Don Cragun Line Number 73601-73602 => 73599-73601
2009-06-25 10:09 Don Cragun Note Added: 0000080
2009-06-25 10:09 Don Cragun Status Under Review => Interpretation Required
2009-06-25 10:09 Don Cragun Resolution Open => Accepted
2009-06-25 10:14 Don Cragun Note Added: 0000081
2009-06-25 10:18 Don Cragun Note Edited: 0000080
2009-06-25 12:21 Don Cragun Note Edited: 0000080
2009-06-25 14:19 Don Cragun Summary else_part in shell gramar missing "Else" or "Elif" after "Then". => else_part in shell gramar missing compound list after "Then".
2009-06-25 16:38 Don Cragun Tag Attached: real bug in aardvark
2009-06-25 18:17 msbrown Relationship added has duplicate 0000054
2009-06-26 06:36 Don Cragun Note Edited: 0000080
2009-06-30 23:04 Don Cragun Reporter Don Cragun => khoroshilov
2009-07-30 15:49 msbrown Tag Detached: real bug in aardvark
2009-08-11 16:20 Don Cragun Interp Status => Pending
2009-09-17 15:41 nick Interp Status Pending => Proposed
2009-10-09 15:42 ajosey Note Edited: 0000081
2009-10-09 15:43 ajosey Interp Status Proposed => Approved
2009-10-09 15:43 ajosey Final Accepted Text => 0000044:0000081
2009-10-09 15:43 ajosey Resolution Accepted => Accepted As Marked
2010-09-20 08:59 geoffclare Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Interpretation Required => Closed