Danyel Bayraktar wrote: > Bash should idle in (e.g.) /tmp or /var/folders/xyz, i.e. occupy > that file as ‘CWD’ towards the OS, but obviously not expose this to > depending code, so still spawn every child process/builtin/keyword > inside the (memory-stored) cwd which will be updated with `cd` and > used throughout.
That would create regressions. Consider the case where a shell changes directory to some directory. Then that directory is renamed. Currently the shell having it as a current working directory will continue to operate. In your proposal the shell would suddenly fail because it would not know the directory was renamed and would be unable to return to it. Bob