View Issue Details

IDProjectCategoryView StatusLast Update
00009141003.1(2013)/Issue7+TC1Shell and Utilitiespublic2024-06-11 09:02
Reporterrhansen Assigned To 
PrioritynormalSeverityEditorialTypeEnhancement Request
Status ClosedResolutionAccepted 
NameRichard Hansen
OrganizationBBN
User Reference
Section2.8.1 Consequences of Shell Errors table
Page Number2337
Line Number74293-74294 (approximately)
Interp Status---
Final Accepted Text
Summary0000914: redirection error with function invocations or compound commands should not cause the shell to exit
DescriptionThe changes made for 0000882 specify that redirection errors with function executions and compound commands may cause the shell to exit. While discussing 0000882 during the 2015-01-22 teleconference, consensus was that the implementations that are known to exit in these cases (Bourne shell and ksh88 and its derivatives) are believed to be buggy and should not exit.

The "may exit" should be changed to "shall not exit". (We wanted to make this change along with 0000882, but this change must be made in Issue 8, not Issue 7 TC2.)
Desired ActionAfter applying 0000882, on page 2337 lines 74293-74294 (XCU 2.8.1 Consequences of Shell Errors table), change:
Redirection error with compound commands | may exit(3) | shall not exit | yes
Redirection error with function execution | may exit(3) | shall not exit | yes
to:
Redirection error with compound commands | shall not exit | shall not exit | yes
Redirection error with function execution | shall not exit | shall not exit | yes
On page 2337 delete the new Note (3):
(3) A future version of this standard may require the shell to not exit in this condition.
Tagsissue8

Relationships

parent of 0000882 Closed meaning of "utility syntax error" unclear 
has duplicate 0000915 Closed Require consistent exit behavior for redirection error with function execution 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2015-01-22 18:04 rhansen New Issue
2015-01-22 18:04 rhansen Name => Richard Hansen
2015-01-22 18:04 rhansen Organization => BBN
2015-01-22 18:04 rhansen Section => 2.8.1 Consequences of Shell Errors table
2015-01-22 18:04 rhansen Page Number => 2337
2015-01-22 18:04 rhansen Line Number => 74293-74294 (approximately)
2015-01-22 18:04 rhansen Interp Status => ---
2015-01-22 18:05 rhansen Tag Attached: issue8
2015-01-22 18:07 rhansen Relationship added parent of 0000882
2015-01-22 18:18 Don Cragun Relationship added has duplicate 0000915
2015-04-02 16:12 geoffclare Status New => Resolved
2015-04-02 16:12 geoffclare Resolution Open => Accepted
2020-04-03 15:10 geoffclare Status Resolved => Applied
2024-06-11 09:02 agadmin Status Applied => Closed