A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1896 ====================================================================== Reported By: McDutchie Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1896 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: Resolved Name: Martijn Dekker Organization: ksh 93u+m: https://github.com/ksh93/ksh User Reference: https://austingroupbugs.net/view.php?id=1157 Section: XCU 2.5: exec Page Number: 2538 Line Number: 82774-82776 Interp Status: --- Final Accepted Text: https://austingroupbugs.net/view.php?id=1896#c7023 Resolution: Accepted As Marked Fixed in Version: ====================================================================== Date Submitted: 2024-12-18 21:33 UTC Last Modified: 2025-01-08 19:56 UTC ====================================================================== Summary: Harm caused by permanent redirections on failure to 'exec' a utility in the interactive shell ======================================================================
---------------------------------------------------------------------- (0007037) chet_ramey (reporter) - 2025-01-08 19:56 https://austingroupbugs.net/view.php?id=1896#c7037 ---------------------------------------------------------------------- Re: Note 7023 You might want to reconsider those lines. In addition to it being a bad idea, shell behavior with respect to preserving successful redirections is by no means universal. Shells that undo the successful redirections: bash, mksh, yash, dash, zsh, gwsh Shells that preserve them: ksh93, NetBSD sh, FreeBSD sh I suggest making the behavior unspecified: "If an exec command with no operands fails and the shell does not exit, it is unspecified whether any redirections ..." Issue History Date Modified Username Field Change ====================================================================== 2024-12-18 21:33 McDutchie New Issue 2024-12-18 21:33 McDutchie Name => Martijn Dekker 2024-12-18 21:33 McDutchie Organization => ksh 93u+m: https://github.com/ksh93/ksh 2024-12-18 21:33 McDutchie User Reference => https://austingroupbugs.net/view.php?id=1157 2024-12-18 21:33 McDutchie Section => XCU 2.5: exec 2024-12-18 21:33 McDutchie Page Number => 2538 2024-12-18 21:33 McDutchie Line Number => 82774-82776 2024-12-18 22:02 larryv Note Added: 0007014 2024-12-19 11:15 geoffclare Note Added: 0007017 2024-12-19 16:37 geoffclare Note Added: 0007023 2024-12-19 16:38 geoffclare Interp Status => --- 2024-12-19 16:38 geoffclare Final Accepted Text => https://austingroupbugs.net/view.php?id=1896#c7023 2024-12-19 16:38 geoffclare Status New => Resolved 2024-12-19 16:38 geoffclare Resolution Open => Accepted As Marked 2024-12-19 16:39 geoffclare Tag Attached: tc1-2024 2024-12-19 17:06 geoffclare Project 1003.1(2016/18)/Issue7+TC2 => 1003.1(2024)/Issue8 2024-12-19 20:21 McDutchie Note Added: 0007025 2025-01-08 19:56 chet_ramey Note Added: 0007037 ======================================================================
