View Issue Details

IDProjectCategoryView StatusLast Update
00010991003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2016-10-27 18:10
ReporterMark_Galeck Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionWithdrawn 
NameMark Galeck
Organization
User Reference
Section2.10.2 Shell Grammar Rules
Page Number2379
Line Number76045-76046
Interp Status---
Final Accepted Text
Summary0001099: the wordlist production should accept reserved words but as currently written it does not
Descriptionthe production

wordlist: wordlist WORD
        | WORD
        ;

currently does not have a rule in action comments, so rule 1 applies to convert TOKEN to WORD. However, for any reserved word, that reserved word identifier results, not WORD, so any reserved word cannot be in wordlist, as currently written.

This is of course wrong, as this example input shows:

for foobar in if; do:; done

This should be accepted, and existing implementations such as dash and bash do, but according to the current standard, it would be incorrect.
Desired ActionChange to:

wordlist: wordlist WORD /* TOKEN always yields WORD here*/
        | WORD /* TOKEN always yields WORD here*/
        ;
TagsNo tags attached.

Activities

Mark_Galeck

2016-10-27 12:43

reporter   bugnote:0003462

This report is included in the summary report 1100 and can be cancelled.

Don Cragun

2016-10-27 18:10

manager   bugnote:0003475

Withdrawn by submitter in 0001099:0003462

Issue History

Date Modified Username Field Change
2016-10-20 17:25 Mark_Galeck New Issue
2016-10-20 17:25 Mark_Galeck Name => Mark Galeck
2016-10-20 17:25 Mark_Galeck Section => 2.10.2 Shell Grammar Rules
2016-10-20 17:25 Mark_Galeck Page Number => 2379
2016-10-20 17:25 Mark_Galeck Line Number => 76045-76046
2016-10-27 12:43 Mark_Galeck Note Added: 0003462
2016-10-27 18:10 Don Cragun Interp Status => ---
2016-10-27 18:10 Don Cragun Note Added: 0003475
2016-10-27 18:10 Don Cragun Status New => Closed
2016-10-27 18:10 Don Cragun Resolution Open => Withdrawn