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-12-05 16:41 UTC ====================================================================== Summary: claifications/improvements around command/exec and special built-in redirection errors ======================================================================
---------------------------------------------------------------------- (0006989) geoffclare (manager) - 2024-12-05 16:41 https://austingroupbugs.net/view.php?id=1879#c6989 ---------------------------------------------------------------------- Interpretation response ------------------------ The standard clearly states that when a special built-in utility is executed via the <i>command</i> utility, the special properties in the enumerated list at the beginning of Section 2.15 (on page 2526) shall not occur, and conforming implementations must conform to this. Rationale: ------------- Despite the lack of a superscript ¹ in the table, the statement in the description of the <i>command</i> utility is sufficient to require that a special built-in utility executed via <i>command</i> does not exit when a redirection error occurs. Notes to the Editor (not part of this interpretation): ------------------------------------------------------- On page 2498 line 81135 section 2.8.1 Consequences of Shell Errors, change: <blockquote>shall exit</blockquote> to: <blockquote>shall exit¹</blockquote> On page 2498 line 81166 section 2.8.1 Consequences of Shell Errors, change: <blockquote>the shell shall (respectively, may) exit from the subshell environment with a non-zero status and continue in the environment from which that subshell environment was invoked.</blockquote> to: <blockquote>the shell shall (respectively, may) exit from the subshell environment, with the exit status stated in the EXIT STATUS section for the <i>sh</i> utility, and continue in the environment from which that subshell environment was invoked.</blockquote> On page 2526 line 82346 section 2.15 Special Built-In Utilities, change: <blockquote>An error in a special built-in utility may cause a shell executing that utility to abort, while an error in a regular built-in utility shall not cause a shell executing that utility to abort.</blockquote> to: <blockquote>An error in a special built-in utility or redirection error with a special built-in utility may cause a shell executing that utility to abort, while for a regular built-in utility such errors shall not cause a shell executing that utility to abort.</blockquote> On page 2539 line 82804 section exec, change: <blockquote>If a redirection error occurs (see [xref to 2.8.1]), the exit status shall be a value in the range 1−125.</blockquote> to: <blockquote>If a redirection error occurs and the shell does not exit (see [xref to 2.8.1]), 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 2024-11-28 16:23 geoffclare Note Edited: 0006975 2024-11-28 16:45 geoffclare Note Added: 0006976 2024-11-28 16:49 geoffclare Note Added: 0006977 2024-11-28 16:51 geoffclare Note Edited: 0006977 2024-11-30 05:14 calestyo Note Added: 0006978 2024-11-30 05:17 calestyo Note Edited: 0006978 2024-12-05 16:41 geoffclare Note Added: 0006989 ======================================================================
