|Anonymous | Login||2021-12-08 19:47 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001507||[1003.1(2016/18)/Issue7+TC2] Shell and Utilities||Objection||Error||2021-08-10 14:29||2021-08-12 22:51|
|Organization||The Open Group|
|Final Accepted Text|
|Summary||0001507: Exit status 0 for mailx needs changing|
The description of exit status 0 for the mailx utility assumes that mailx is always used to send one or more messages. In Send Mode that is true, but in Receive Mode it only sends messages if one of the forms of Follow Up, Mail, or Reply commands is used.
note that this status implies that all messages were sent, but it gives no assurances that any of them were actually delivered.to:
note that this status implies that any messages that mailx was instructed to send were all successfully sent, but it gives no assurances that any of them were actually delivered.
|Tags||No tags attached.|
It is .. difficult.
You know, i personally start an instance of my mailx clone on Monday, and quit it on Saturday (Sunday that is already, mostly).
Should the exit status on Saturday reflect a failed delivery attempt on say Tuesday?
For my clone i added options like "set errexit", an "ignerr" command / "-" command escape prefix (to explicitly ignore errors even if "errexit" is active etc etc.
We also have per-command return/exit status and error numbers.
So if we survive errors, the next command will reset the exit status to 0.
It can be said that we are not compliant to the current state of affairs POSIX defines in at least receive mode, on the other hand.
Maybe i should make any occurrence of the send-error bit persistent, and restore it upon program exit, in at least send mode, and at least in conjunction with $POSIXLY_CORRECT aka "set posix".
|2021-08-10 14:29||geoffclare||New Issue|
|2021-08-10 14:29||geoffclare||Name||=> Geoff Clare|
|2021-08-10 14:29||geoffclare||Organization||=> The Open Group|
|2021-08-10 14:29||geoffclare||Section||=> mailx|
|2021-08-10 14:29||geoffclare||Page Number||=> 2964|
|2021-08-10 14:29||geoffclare||Line Number||=> 98259|
|2021-08-10 14:29||geoffclare||Interp Status||=> ---|
|2021-08-12 22:51||steffen||Note Added: 0005441|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|