Anonymous | Login | 2024-04-25 22:09 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001145 | [1003.1(2016/18)/Issue7+TC2] Shell and Utilities | Editorial | Error | 2017-06-15 08:17 | 2018-11-29 16:28 | ||
Reporter | yannregisgianas | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Rejected | ||||
Status | Closed | ||||||
Name | Yann REGIS-GIANAS | ||||||
Organization | University Paris Diderot | ||||||
User Reference | |||||||
Section | Section 2.10.2 | ||||||
Page Number | 0 | ||||||
Line Number | 0 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0001145: compound-list does not required a terminating semicolon even in compound commands, which is contradictory with implementations. | ||||||
Description |
The shell grammar is defining the non terminal for compound_list as follows: compound_list : linebreak term | linebreak term separator ; and this non terminal is used in compound_commands like "until" for instance: until_clause : Until compound_list do_group ; However, a "term" may derive a simple command like "a". Therefore, the following script seems accepted by the grammar: until a do b; done while the usual shell implementations require a semicolon or a newline to be inserted just after the "a" for this script to be syntactically correct. |
||||||
Desired Action | Fix the grammar to comply with implementations. | ||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Relationships | |||||||
|
Notes | |
(0003764) geoffclare (manager) 2017-06-15 08:55 edited on: 2018-11-29 16:27 |
The command: until a do b; done is not accepted by the grammar because in the grammar do_group requires a "do" keyword to be present, and this command does not have one. (The word "do" in this command is an ordinary word to be passed as an argument to "a"; it is not recognised as a keyword.) This appears to be the same misinterpretation of the shell grammar rules as was made in 0001046. Update: this bug was discussed in the Nov 29, 2018 teleconference and is being rejected for the reason given above. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |