diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 14:34:40 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 14:34:40 -0600 |
| commit | 78d73092a29cca7e3ce4ef6b5e2c6cd244f40202 (patch) | |
| tree | 11e54f24ebb2d3f528ec31ac467fa864fe92595b /bench/git@git.abendless.com:/srv/git | |
| parent | 93bbcf2f9a75bb5090d96ec9908594e15aa5908b (diff) | |
| parent | 95d31d2d7d5fd7de81d6d5e2caedcdc369ca0fcf (diff) | |
| download | zash-78d73092a29cca7e3ce4ef6b5e2c6cd244f40202.tar.gz | |
Merge main into perf/cd-inproc: one in-process `( cd dir )`, not two
main gained an in-process `( cd dir )` of its own with the 2026-11-28
review merge (the uncommitted working tree the review was written
against, committed as cb1688f), so this branch and main both replaced
the fork for the same command, in two places.
That copy has a defect this branch guards against: with
readonly PWD; ( cd / ); echo after
the readonly assignment raises out of the saved-cwd block and kills the
whole shell - no `after` - where dash and bash both print it (dash rc=2,
bash rc=1). `subshell_in_process()` here refuses to run the `cd`
in-process unless PWD and OLDPWD are plain, and `builtin_cd_isolated()`
holds its own exception handler, so the fork still happens in that case.
Resolution: keep this branch's implementation and drop main's ad-hoc
branch in eval_subshell() together with the curdir_invalidate() helper
added for it, which had no other caller. The tests main brought with it
(tests/zash/subshell-cd.sh, tests/proc/subshell-pure.sh) still pass.
Verified on Linux (7.3.4-300.fc45.x86_64, 2026-11-28): make check 127
passed / 1 skipped / the known linux/i-dscomplete failure, make asan and
make valgrind the same, make mvs-asan 127 passed, make zos-lint clean,
the readonly-PWD case now matches dash. Not re-run on cbt.
Diffstat (limited to 'bench/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
