Austin Group Defect Tracker

Aardvark Mark III


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001266 [1003.1(2016)/Issue7+TC2] Shell and Utilities Objection Error 2019-07-03 15:18 2019-08-01 16:07
Reporter dennisw View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Interpretation Required  
Name Dennis Wölfing
Organization
User Reference
Section sh
Page Number 3226
Line Number 108308-108309
Interp Status Pending
Final Accepted Text See Note: 0004504.
Summary 0001266: sh -s with operands
Description When 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 Action On 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.
Tags tc3-2008
Attached Files

- Relationships

-  Notes
(0004504)
Don Cragun (manager)
2019-08-01 16:05

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.

- 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 Note: 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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker