Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
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
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Geoff Clare
Organization The Open Group
User Reference
Section mailx
Page Number 2964
Line Number 98259
Interp Status ---
Final Accepted Text
Summary 0001507: Exit status 0 for mailx needs changing
Description 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.
Desired Action Change:
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.
Attached Files

- Relationships

-  Notes
(0005441)
steffen (reporter)
2021-08-12 22:51

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".

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker