Re: does POSIX specify when exactly the EXIT trap condition in a shell occurs?

2022-12-30 Thread Christoph Anton Mitterer via austin-group-l at The Open Group
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?

2022-12-30 Thread Oğuz via austin-group-l at The Open Group
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

Re: does POSIX specify when exactly the EXIT trap condition in a shell occurs?

2022-12-30 Thread Christoph Anton Mitterer via austin-group-l at The Open Group
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

Re: does POSIX specify when exactly the EXIT trap condition in a shell occurs?

2022-12-29 Thread Oğuz İsmail Uysal via austin-group-l at The Open Group
On 12/30/22 6:09 AM, Christoph Anton Mitterer via austin-group-l at The Open Group wrote: Does "shall be executed before the shell terminates" mean in general [...] I think so, but perhaps it should say "terminates normally" instead, or whatever phrase that leaves it clearly unspecified

does POSIX specify when exactly the EXIT trap condition in a shell occurs?

2022-12-29 Thread Christoph Anton Mitterer via austin-group-l at The Open Group
Hey. I recently read a question on the bash mailing list about shell behaviour which reminded me on something else I've noticed my self a while ago in dash and which I felt was unexpected behaviour. This in turn brought me to the question whether POSIX specifies in which exact cases the EXIT