View Issue Details

IDProjectCategoryView StatusLast Update
00007181003.1(2013)/Issue7+TC1Shell and Utilitiespublic2019-06-10 08:55
Reporterrhansen Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted As Marked 
NameRichard Hansen
OrganizationBBN
User Reference
SectionXCU 2.3 (Token Recognition), XCU description of sh
Page Number2321, 3190
Line Number73637-73638, 106748-106752
Interp Status---
Final Accepted Textsee 0000718:0001672
Summary0000718: sh -i -c '...' should not read its input from terminal
DescriptionXCU 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 ActionChange 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.)
Tagstc2-2008

Relationships

related to 0000736 Closed grammatically accept zero or more Shell commands 

Activities

eblake

2013-07-11 15:55

manager   bugnote:0001672

Last edited: 2013-07-11 15:56

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.

Issue History

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