A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1879 ====================================================================== Reported By: calestyo Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1879 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Christoph Anton Mitterer Organization: User Reference: Section: Shell Command Language Page Number: various Line Number: various Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-11-26 04:30 UTC Last Modified: 2024-11-28 16:21 UTC ====================================================================== Summary: claifications/improvements around command/exec and special built-in redirection errors ======================================================================
---------------------------------------------------------------------- (0006975) geoffclare (manager) - 2024-11-28 16:21 https://austingroupbugs.net/view.php?id=1879#c6975 ---------------------------------------------------------------------- > With the 2024 that got IMO even more ambiguous: > [...] > In particular it no longer says "the shell shall exit", but rather talks about an exit status (using the same wording it uses in other places for regular exit statuses where the shell doesn't abort per se). Yes, your parenthetical comment is the whole point of this change. Unless explicitly stated otherwise, when the EXIT STATUS section for exec talks about "the exit status", it is talking about the exit status of the exec utility. If the shell itself exits, then the exec utility has no exit status. Perhaps to make this intent clearer, that sentence should be reworded as: <blockquote>If a redirection error occurs (see [xref to 2.8.1]) and the shell does not exit, the exit status (of <i>exec</i>) shall be a value in the range 1−125.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2024-11-26 04:30 calestyo New Issue 2024-11-26 04:30 calestyo Name => Christoph Anton Mitterer 2024-11-26 04:30 calestyo Section => Shell Command Language 2024-11-26 04:30 calestyo Page Number => various 2024-11-26 04:30 calestyo Line Number => various 2024-11-26 08:23 larryv Note Added: 0006970 2024-11-26 08:26 larryv Note Edited: 0006970 2024-11-26 08:27 larryv Note Edited: 0006970 2024-11-26 18:48 calestyo Note Added: 0006971 2024-11-27 07:19 larryv Note Added: 0006972 2024-11-27 20:47 calestyo Note Added: 0006973 2024-11-27 22:57 larryv Note Added: 0006974 2024-11-28 16:21 geoffclare Note Added: 0006975 ======================================================================
