Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tilde_expand2(): simplify (re: 1829e86)
The nv_putval() and nv_getval() commands are guaranteed to restore the stack, directly or indirectly. If a discipline shell function gets executed, the stack is restored by sh_exec() after executing (see xec.c lines 2633-2636). So the code block handling the .sh.tilde.* disciplines does not need to. After this tweak, the tilde.sh regression tests still pass, including when compiled with ASan.
- Loading branch information