|Anonymous | Login||2020-07-14 16:56 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001298||[1003.1(2016)/Issue7+TC2] Shell and Utilities||Objection||Clarification Requested||2019-11-01 16:16||2020-01-29 15:06|
|Organization||The Open Group|
|Final Accepted Text|
|Summary||0001298: ed CONSEQUENCES OF ERRORS unclear about diagnostic message|
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.
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.
|There are no notes attached to this issue.|
|2019-11-01 16:16||geoffclare||New Issue|
|2019-11-01 16:16||geoffclare||Name||=> Geoff Clare|
|2019-11-01 16:16||geoffclare||Organization||=> The Open Group|
|2019-11-01 16:16||geoffclare||Section||=> ed|
|2019-11-01 16:16||geoffclare||Page Number||=> 2689|
|2019-11-01 16:16||geoffclare||Line Number||=> 87713|
|2019-11-01 16:16||geoffclare||Interp Status||=> ---|
|2019-12-16 16:15||Don Cragun||Status||New => Resolved|
|2019-12-16 16:15||Don Cragun||Resolution||Open => Accepted|
|2019-12-16 16:15||Don Cragun||Desired Action Updated|
|2019-12-16 16:15||Don Cragun||Tag Attached: tc3-2008|
|2020-01-29 15:06||geoffclare||Status||Resolved => Applied|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|