View Issue Details

IDProjectCategoryView StatusLast Update
00012661003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:08
Reporterdennisw Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameDennis Wölfing
Organization
User Reference
Sectionsh
Page Number3226
Line Number108308-108309
Interp StatusApproved
Final Accepted TextSee 0001266:0004504.
Summary0001266: sh -s with operands
DescriptionWhen the -i option is not present, the standard currently says that the shell is only interactive when there are no operands and stdin and stderr are a terminal.
However when the -s option is given commands are read from stdin even when operands are present and existing shells do treat -s with operands as interactive when stdin and stderr refer to a terminal.
Desired ActionOn page 3226 lines 108308-108309 section sh, change:
If the −i option is present, or if there are no operands and the shell’s standard input and
standard error are attached to a terminal, the shell is considered to be interactive.
to
If the −i option is present, or if the shell reads commands from the standard input and the shell’s standard input and
standard error are attached to a terminal, the shell is considered to be interactive.
Tagstc3-2008

Activities

Don Cragun

2019-08-01 16:05

manager   bugnote:0004504

Interpretation response
------------------------
The standard clearly states that sh -s arg... is not interactive, and conforming implementations must conform to this. However, concerns have been raised about this which are
being referred to the sponsor.

Rationale:
-------------
All known shells, except yash, make the shell interactive in this case when standard input and standard error are connected to a terminal and we believe this historic behavior is correct.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
Make the changes suggested in the Desired Action.

agadmin

2019-10-07 15:15

administrator   bugnote:0004598

Interpretation proposed: 7 October 2019

agadmin

2019-11-11 12:19

administrator   bugnote:0004644

Interpretation Approved: 11 Nov 2019

Issue History

Date Modified Username Field Change
2019-07-03 15:18 dennisw New Issue
2019-07-03 15:18 dennisw Name => Dennis Wölfing
2019-07-03 15:18 dennisw Section => sh
2019-07-03 15:18 dennisw Page Number => 3226
2019-07-03 15:18 dennisw Line Number => 108308-108309
2019-08-01 16:05 Don Cragun Note Added: 0004504
2019-08-01 16:06 Don Cragun Interp Status => ---
2019-08-01 16:06 Don Cragun Final Accepted Text => See 0001266:0004504.
2019-08-01 16:06 Don Cragun Status New => Interpretation Required
2019-08-01 16:06 Don Cragun Resolution Open => Accepted
2019-08-01 16:06 Don Cragun Tag Attached: tc3-2008
2019-08-01 16:07 Don Cragun Interp Status --- => Pending
2019-10-07 15:15 agadmin Interp Status Pending => Proposed
2019-10-07 15:15 agadmin Note Added: 0004598
2019-11-11 12:19 agadmin Interp Status Proposed => Approved
2019-11-11 12:19 agadmin Note Added: 0004644
2019-12-05 11:16 geoffclare Status Interpretation Required => Applied
2024-06-11 09:08 agadmin Status Applied => Closed