View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000718 | 1003.1(2013)/Issue7+TC1 | Shell and Utilities | public | 2013-06-29 21:43 | 2019-06-10 08:55 |
| Reporter | rhansen | Assigned To | |||
| Priority | normal | Severity | Objection | Type | Error |
| Status | Closed | Resolution | Accepted As Marked | ||
| Name | Richard Hansen | ||||
| Organization | BBN | ||||
| User Reference | |||||
| Section | XCU 2.3 (Token Recognition), XCU description of sh | ||||
| Page Number | 2321, 3190 | ||||
| Line Number | 73637-73638, 106748-106752 | ||||
| Interp Status | --- | ||||
| Final Accepted Text | see 0000718:0001672 | ||||
| Summary | 0000718: sh -i -c '...' should not read its input from terminal | ||||
| Description | XCU 2.3 page 2321 lines 73637-73638 says: The shell shall read its input in terms of lines from a file, from a terminal in the case of an interactive shell, or from a string in the case of sh −c or system(). XCU description of sh page 3190 lines 106748-106752 says: The standard input shall be used only if one of the following is true: * The −s option is specified. * The −c option is not specified and no operands are specified. * The script executes one or more commands that require input from standard input (such as a read command that does not redirect its input). These two sections conflict in this case: sh -i -c '...' | ||||
| Desired Action | Change XCU 2.3 page 2321 lines 73637-73638 from: The shell shall read its input in terms of lines from a file, from a terminal in the case of an interactive shell, or from a string in the case of sh −c or system(). to: The shell shall read its input in terms of lines. (For details about how the shell reads its input, see the description of the sh utility on page 3189.) | ||||
| Tags | tc2-2008 | ||||
| related to | 0000736 | Closed | grammatically accept zero or more Shell commands |
|
|
Make the changes suggested in the Desired Action. Additionally, at line 106766 [sh INPUT FILES], change: If the input file is empty or consists solely of blank lines or comments, or both, sh shall exit with a zero exit status. to: If the input file consists solely of zero or more blank lines and comments, sh shall exit with a zero exit status. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-06-29 21:43 | rhansen | New Issue | |
| 2013-06-29 21:43 | rhansen | Name | => Richard Hansen |
| 2013-06-29 21:43 | rhansen | Organization | => BBN |
| 2013-06-29 21:43 | rhansen | Section | => XCU 2.3 (Token Recognition), XCU description of sh |
| 2013-06-29 21:43 | rhansen | Page Number | => 2321, 3190 |
| 2013-06-29 21:43 | rhansen | Line Number | => 73637-73638, 106748-106752 |
| 2013-07-11 15:55 | eblake | Note Added: 0001672 | |
| 2013-07-11 15:56 | eblake | Interp Status | => --- |
| 2013-07-11 15:56 | eblake | Final Accepted Text | => see 0000718:0001672 |
| 2013-07-11 15:56 | eblake | Status | New => Resolved |
| 2013-07-11 15:56 | eblake | Resolution | Open => Accepted As Marked |
| 2013-07-11 15:56 | eblake | Tag Attached: tc2-2008 | |
| 2013-07-11 15:56 | eblake | Note Edited: 0001672 | |
| 2013-08-22 16:08 | nick | Relationship added | related to 0000736 |
| 2019-06-10 08:55 | agadmin | Status | Resolved => Closed |