Re: does POSIX specify when exactly the EXIT trap condition in a shell occurs?
On Sat, 2022-12-31 at 06:11 +0200, Oğuz wrote: > This seems to have already been addressed > here https://austingroupbugs.net/view.php?id=621 by the way Ah thanks... that resolves it. Haven't found it as I was searching for Issue 8 draft issues only. Cheers, Chris.
Re: does POSIX specify when exactly the EXIT trap condition in a shell occurs?
30 Aralık 2022 Cuma tarihinde Christoph Anton Mitterer < cales...@scientia.org> yazdı: > Which, if it's only written in the exit built-in’s description, could > still be mistaken as "only when via done so via a call to the exit > utility" - and e.g. not if the script reaches EOF. I don't think so. > > Also it may not be clear whether any shell errors as in: > https://pubs.opengroup.org/onlinepubs/9699919799/ > utilities/V3_chap02.html#tag_18_08_01 > would be considered "normal" termination > In all the cases listed there the shell prints a diagnostic message and terminates voluntarily, of course they would be considered normal termination. This seems to have already been addressed here https://austingroupbugs.net/view.php?id=621 by the way -- Oğuz
Re: does POSIX specify when exactly the EXIT trap condition in a shell occurs?
On Fri, 2022-12-30 at 08:17 +0300, Oğuz İsmail Uysal wrote: > I think so, but perhaps it should say "terminates normally" instead, Which, if it's only written in the exit built-in’s description, could still be mistaken as "only when via done so via a call to the exit utility" - and e.g. not if the script reaches EOF. Also it may not be clear whether any shell errors as in: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_01 would be considered "normal" termination or not respectively whether it's only unspecified in case of uncaught signals. Cheers, Chris.