Good morning,  

In GNU bash, version 5.0.2(1)-release (x86_64-pc-linux-gnu):
The command cd "" is successful but cd -P "" fails.
This is inconsistent and not evident in man bash.
Expected is that cd "$(mktemp -d)" returns error if mktemp fails.

BASH(1)

cd
        ...
        The  return  value  is  true  if  the directory was successfully
        changed; false otherwise.


Reply via email to