summaryrefslogtreecommitdiffhomepage
path: root/tests/posix/command-special.sh
Commit message (Collapse)AuthorAgeFilesLines
* Errors in command-prefixed special builtins no longer exit; no arena leakSean Kurtz2026-11-151-0/+37
`command eval`, `command .` and friends lose the special property that an error exits a non-interactive shell (POSIX 2.14, and dash, bash and ksh93 agree): the error now becomes the status. Only that path pays for a setjmp(). run_input() released its parse arena only on the normal path; an error caught further out (a subshell, command, the prompt) leaked it. Found by running the suite under Valgrind with leak checking, which is now on for make valgrind and make asan. Also renames two locals that shadowed the cond typedef (gcc -Wshadow).