A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1896 ====================================================================== Reported By: McDutchie Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1896 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New 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: ====================================================================== Date Submitted: 2024-12-18 21:33 UTC Last Modified: 2024-12-19 11:15 UTC ====================================================================== Summary: Harm caused by permanent redirections on failure to 'exec' a utility in the interactive shell ======================================================================
---------------------------------------------------------------------- (0007017) geoffclare (manager) - 2024-12-19 11:15 https://austingroupbugs.net/view.php?id=1896#c7017 ---------------------------------------------------------------------- I think the reason lines 82774-82776 are there is because of this:<pre>$ exec > foo 2> . -ksh: .: cannot create [Is a directory] $ echo hello $ cat foo >&2 hello</pre> The redirection of stdout was successfully made and takes effect in the current shell execution environment. So I think those lines should not be removed, but altered to say "If an <i>exec</i> command with no operands fails and the shell does not exit, ..." 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 ======================================================================
