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-18 22:02 UTC ====================================================================== Summary: Harm caused by permanent redirections on failure to 'exec' a utility in the interactive shell ======================================================================
---------------------------------------------------------------------- (0007014) larryv (reporter) - 2024-12-18 22:02 https://austingroupbugs.net/view.php?id=1896#c7014 ---------------------------------------------------------------------- Description:<blockquote>Bash 5.2 has unfortunately taken interpretation 1, and thus breaks in exactly the dangerous ways described.</blockquote>This is longstanding behavior in bash, not a response to the new requirement:<pre>zsh-5.9% /bin/bash --norc bash-3.2$ exec nosuchcmd <<<'echo oh no' bash: exec: nosuchcmd: not found bash-3.2$ echo oh no oh no bash-3.2$ exit zsh-5.9%</pre>But I agree that it's not great. 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 ======================================================================
