Anonymous | Login | 2023-06-11 01:50 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001298 | [1003.1(2016/18)/Issue7+TC2] Shell and Utilities | Objection | Clarification Requested | 2019-11-01 16:16 | 2020-01-29 15:06 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted | ||||
Status | Applied | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | ed | ||||||
Page Number | 2689 | ||||||
Line Number | 87713 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0001298: ed CONSEQUENCES OF ERRORS unclear about diagnostic message | ||||||
Description |
The CONSEQUENCES OF ERRORS section on the ed page says:If the standard input is a regular file, ed shall terminate with a non-zero exit status. Notice that it does not say a diagnostic message needs to be written. Section 1.4 Utility Description Defaults, under CONSEQUENCES OF ERRORS, says: The following shall apply to each utility, unless otherwise stated: It is possible to interpret the statement on the ed page as triggering the "otherwise stated" here, since it states something that is already one of the bullet items in the defaults and thus can be seen as a replacement for the whole bullet list. This is almost certainly not intended (if it was, the ed page would explicitly say that a diagnostic message need not be written), but it would be good to remove any doubt. The ex page has a similar problem. Another problem with above quote from the ed page is that it only covers the case where standard input is a regular file. It should apply to other non-terminal file types (e.g. pipes) as well, like it does for ex. |
||||||
Desired Action |
On page 2689 line 87713 section ed, change:If the standard input is a regular file, ed shall terminate with a non-zero exit status.to: If the standard input is a not a terminal device file, ed shall behave as described under CONSEQUENCES OF ERRORS in [xref to 1.4]. On page 2743 line 89810 section ex, change: When any error is encountered and the standard input is not a terminal device file, ex shall not write the file or return to command or text input mode, and shall terminate with a non-zero exit status.to: When any error is encountered and the standard input is not a terminal device file, in addition to the default requirements described in [xref to 1.4], ex shall neither write the file (if one has been opened) nor return to command or text input mode. |
||||||
Tags | tc3-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |