POSIX.1-2024 requires that the `cd` built-in fail if given an empty operand as in `cd ''`. Currently, `cd -L ''` is effectively equivalent to `cd -L "$PWD/"`, which usually results in successfully not changing the working directory. - [ ] Update the implementation to add a check for an empty operand. The exit status should be 5 on error. - [ ] Update the test scripts. - [ ] Update the user manual. - [ ] Update the `NEWS`.
POSIX.1-2024 requires that the
cdbuilt-in fail if given an empty operand as incd ''.Currently,
cd -L ''is effectively equivalent tocd -L "$PWD/", which usually results in successfully not changing the working directory.NEWS.